需要未知模块“未定义”
Posted
技术标签:
【中文标题】需要未知模块“未定义”【英文标题】:Requiring unknown module "undefined" 【发布时间】:2019-07-25 09:46:29 【问题描述】:在 android 的 Release Build 中,我在调试时遇到此错误,一切正常。
致命异常:mqt_native_modules。需要未知模块 “未定义”。
请帮助我。我坚持了6个小时
"dependencies":
"native-base": "^2.12.1",
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-audio": "^4.3.0",
"react-native-dropdown": "^0.0.6",
"react-native-geo-fencing": "^0.1.0",
"react-native-geolocation-service": "^2.0.1",
"react-native-gesture-handler": "^1.3.0",
"react-native-image-marker": "^0.4.4",
"react-native-localization": "^2.1.2",
"react-native-maps": "^0.25.0",
"react-native-share": "1.2.1",
"react-native-simple-dialogs": "^1.1.0",
"react-native-splash-screen": "^3.2.0"
Requiring unknown module "undefined" on react-native-maps 这是太旧的解决方案,它不适合我。
【问题讨论】:
你检查过this吗? 你解决了这个问题吗? 【参考方案1】:首次运行命令:
rm -rf /node_modules && npm install
然后运行:
react-native start
【讨论】:
以上是关于需要未知模块“未定义”的主要内容,如果未能解决你的问题,请参考以下文章
Protractor Angular 2 失败:未知错误:未定义角度
Angular AOT Build:内部错误:未知标识符未定义