Upgrading from 48 to 49: errors including "TypeError: Cannot read property 'prototype' of undefined, js engine: hermes"

I upgraded from SDK 47 to 48, which was fine. I then upgraded to 49.0.0. I’m getting the errors below. I’ve upgraded to 49.0.8 and I’m still getting these errors.

 ERROR  TypeError: Cannot read property 'prototype' of undefined, 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

Any ideas? I’ve run npx expo install --fix and npx expo-doctor@latest and everything appears to be fine. I upgraded straight from SDK 48 without making any other changes.

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