N Kaushik

Solved-Invariant Violation Module AppRegistry is not a registered callable module

July 06, 2021

Invariant Violation: Module AppRegistry is not a registered callable module

Issue details:

Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

Reason:

This issue appears if you have added some new library to your project, or you are switching branch or your bundle data got corrupted.

Solution 1:

Start the server by resetting the cache.

npm start --reset-cache

then, start your android or ios app:

npm start android

or

npm start ios

Solution 2:

If the above solution doesn’t work, you can try by deleting the node_modules folder:

rm -rf node_modules
npm i or yarn i

Start the app again. One of these should work.


Subscribe to my Newsletter