Module `AccessibilityInfo` does not exist in the Haste module map

Loading dependency graph, done.

error: bundling failed: Error: Unable to resolve module `AccessibilityInfo` from `D:\ReactNative\RNApp\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module `AccessibilityInfo` does not exist in the Haste 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 /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`. 4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.

解决方案:

关闭dos运行窗口和react packager运行窗口,重新运行一下react-native run-android;

猜你喜欢

转载自blog.csdn.net/niuba123456/article/details/81837088
今日推荐