After upgrading Expo SDK from 48 to 49, expo start works but after bundling i get two types of errors:
1- TypeError: Cannot read property ‘prototype’ of undefined, js engine: hermes
2- 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
2
Answers
Upgrade your react-navigation libraries too after upgrading. This is particular to the Drawer navigation. Generally upgrading them will solve this e.g.
After upgrading from SDK 48 to SDK 49, I’m getting below error and when did ‘yarn upgrade to the react-navigation’ as per Joshua it didn’t solved.
Any help much appreciated.