错误:打包失败:
错误:无法解析模块
AccessibilityInfo
,位于D:\MyApp\node_modules\react-native\Libraries\react-native\react-native-implementation.js
:模块AccessibilityInfo
在 Haste 模块映射中不存在。
错误:打包失败:
错误:无法解析模块
AccessibilityInfo
,位于D:\MyApp\node_modules\react-native\Libraries\react-native\react-native-implementation.js
:模块AccessibilityInfo
在 Haste 模块映射中不存在。
这是React Native中一些版本不兼容的问题。尝试这个方法,它会起作用。
Change versions of following in package.json In dependencies :-
"react": "16.3.1"
"react-native": "0.55.4"
In devDependencies :-
"babel-preset-react-native": "2.1.0"
Delete node_modules and run npm install --save
Then run application by react-native run-android
它将运行良好...
error Unable to resolve module
AccessibilityInfofrom
react-native-calendars/node_modules/react-native/Libraries/react-native/react-native-implementation.js: AccessibilityInfo could not be found within the project.
仍然没有运气 :( - Narendra Singh标题
npm start -- --reset-cache
如果这不起作用, 则删除节点模块和npm安装 npm start -- --reset-cache