跳到内容 跳到主导航 跳到页脚

OPK 打开报错

如果出现一下com.facebook.react.common.JavascriptException: Requiring unknown module “node_modules_react-native_Libraries_Core_InitializeCore.js”., stack:报错(如下),为依赖版本库问题,需要找到当前机器人使用的package.json库,替换到项目中

09-07 19:05:35.859  3170  3256 D DaemonService: Check permission, top : com.ainirobot.moduleapp  current : com.ainirobot.moduleapp
09-07 19:05:35.863  6636  6696 E ReactNativeJS: Requiring unknown module "node_modules_@babel_runtime_helpers_interopRequireDefault.js".
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:  handleException com.facebook.react.common.JavascriptException: Requiring unknown module "node_modules_react-native_Libraries_Core_InitializeCore.js"., stack:
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler: unknownModuleError@309:12
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler: loadModuleImplementation@234:13
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler: guardedLoadModule@151:23
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler: metroRequire@86:75
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler: <unknown>@127:1
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler: 
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:54)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:38)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at java.lang.reflect.Method.invoke(Native Method)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:373)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at android.os.Handler.handleCallback(Handler.java:873)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at android.os.Handler.dispatchMessage(Handler.java:99)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at android.os.Looper.loop(Looper.java:193)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
09-07 19:05:35.865  6636  6697 I OSNativeModuleCallExceptionHandler:         at java.lang.Thread.run(Thread.java:764)