Invariant Violation: "main" has not been registered with Expo 48

I have upgraded to SDK 48 have now I am encountering this error.
Invariant Violation: “main” has not been registered.

  • 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

@wodin please help

Hi @alvi110

You’ll need to provide more info. What did you do in order to get that error? Where did you see the error?

The error is unfortunately not very useful by itself.

Was the app working before? What did you do between the time that it was working and now?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.