Previously, my project was running on Expo SDK 49. Today, I updated it to SDK 51. However, upon running the expo project with the command npx expo start
, I encountered the following errors:
Android Bundled 11242ms D:ProjectsBookingnode_modulesexpoAppEntry.js (1661 modules)
ERROR TypeError: Cannot read property ‘style’ 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.
I’m attempting to run the app so I can proceed with my work, but I keep encountering these errors, and none of the solutions seem to be effective.