【发布时间】:2018-07-23 05:13:33
【问题描述】:
我在跑步
react-native bundle --platform windows --dev false --entry-file index.windows.js --bundle-output windows/app/ReactAssets/index.windows.bundle --assets-dest windows/app/ ReactAssets/
创建发布包的命令,但出现以下错误
Unable to resolve module `AccessibilityInfo` from `C:\Users\godha.pranay\project\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module does not exist in the module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf $TMPDIR/react-*` or `npm start -- --reset-cache`. 4. Remove haste cache: `rm -rf $TMPDIR/haste-map-react-native-packager-*`.
我尝试了互联网上推荐的所有方法,但没有任何效果。我完全坚持下去。请帮忙。
【问题讨论】:
-
我也遇到了同样的问题。查了一些资料,发现这个问题应该是0.56版本的bug。
标签: react-native bundle