Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6290

Invariant Violation: "main" has not been registered. This can happen if: Metro (the local dev server) is run from the wrong folder

$
0
0

I'm trying to load the app I'm working on (react native in my android device) with the command "yarn react-native start", but when the bundle starts loading, the app crashes, showing me this messages:

ERROR TypeError: this.InnerNativeModule.configureProps is not a function. (In 'this.InnerNativeModule.configureProps(uiProps, nativeProps)', 'this.InnerNativeModule.configureProps' is undefined)LOG Running "main" with {"rootTag":1}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.

this is an image of the error in the terminal

I've tried deleting node_modules, files debug and release, it has worked for me before while the app has shown me other errors, but not this time


Viewing all articles
Browse latest Browse all 6290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>