将 viro react 集成到空白的 expo react native 项目后出现错误

问题描述 投票:0回答:0
TypeError: Cannot read property 'setJSMaterials' of null, js engine: hermes
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in reportException
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in handleException
at node_modules\react-native\Libraries\Core\setUpErrorHandling.js:null in handleError
at node_modules\expo\build\errors\ExpoErrorManager.js:null in errorHandler
at node_modules\expo\build\errors\ExpoErrorManager.js:null in <anonymous>
at node_modules\@react-native\polyfills\error-guard.js:null in ErrorUtils.reportFatalError
at node_modules\metro-config\node_modules\metro-runtime\src\polyfills\require.js:null in guardedLoadModule
at node_modules\metro-config\node_modules\metro-runtime\src\polyfills\require.js:null in metroRequire
at http://192.168.1.134:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in global    

Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in reportException
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in handleException
- ... 7 more stack frames from framework internals 

implementing starter app  in blank expo react native project  starter app - github url -- https://github.com/ViroCommunity/starter-kit
reactjs react-native expo augmented-reality
© www.soinside.com 2019 - 2024. All rights reserved.