ReactNativeでシミュレーター起動するとRNCWebViewModuleエラー
戻る
公開日:2024/9/3
エラーが出たのでメモ。
ReactNativeをEXPOを使っていて、シミュレーターを起動したら以下のエラーが表示されました。
iOS Bundled 54ms node_modules/expo/AppEntry.js (1 module)
ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCWebViewModule' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","DevSettings","LogBox","SourceCode","Timing","SettingsManager","AppState","BlobModule","WebSocketModule","Networking","RedBox","Appearance","DevLoadingView","DeviceInfo","UIManager","ImageLoader","LinkingManager"],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","BugReporting","HeadlessJsTaskSupport","SoundManager","IntentAndroid","RNCWebViewModule"]}, js engine: hermes
ERROR 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ソースの中でreact-native-webviewを使っています。
そして、エラー前に全体的にバージョンアップをしました・・・。
調べたところ、以下のサイトの通り、「react-native-webview」のバージョンを「13.6.4」にしたらエラーはなくなりました。
https://github.com/react-native-webview/react-native-webview/issues/3506
"react-native-webview": "^13.10.5",
"react-native-webview": "13.6.4",
戻る
