Featured post
- Get link
- X
- Other Apps
A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes
Hi,
I was working in a react native project, when i opened my react native project in android studio , ran the project by executing npm start command,and do gradle sync successfully and ran the app on simulator,immediately i got an error
ERROR Invariant Violation: "FrontEnd" 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 was confused a long time How to solve the issue.I tried a lots of methods like Clean Project Rebuild Project etc .Later i found that i was opening android folder of wrong react native project in android studio.That is why i got the error A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes
So in order to fix Invariant Violation: project folder name has not been registered error ,make sure that you have opened correct android folder in android studio.
I hope this small article help you to fix Invariant Violation error in react native.
Popular Posts
How to Check React Version Installed in Your System by Checking PACKAGE.JSON File and Executing Command from COMMAND PROMPT
- Get link
- X
- Other Apps
Execution failed for task ':react-native-reanimated:externalNativeBuildDebug' solved
- Get link
- X
- Other Apps
Error: Invalid `prisma.$executeRaw()` invocation: fixed using log: ["query"] option
- Get link
- X
- Other Apps
app keeps stopping error solved in android studio emulator using logcat in react native project
- Get link
- X
- Other Apps
ERROR Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined
- Get link
- X
- Other Apps