question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invariant Violation: Module AppRegistry error

See original GitHub issue
    "react-native-file-access": "^2.4.1",
    "react-native": "^0.67.3",
    "react-native-reanimated": "2.4.1",
    "@georstat/react-native-image-cache": "^2.1.0",

I am getting the following error while adding to my App.tsx

CacheManager.config = {
  baseDir: `${Dirs.CacheDir}/images_cache/`,
  blurRadius: 15,
  cacheLimit: 0,
  sourceAnimationDuration: 1000,
  thumbnailAnimationDuration: 1000,
};
TypeError: undefined is not a function, js engine: hermes
 ERROR  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.

and also:

 ERROR  TypeError: undefined is not a function, js engine: hermes

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
efstathiosntonascommented, May 23, 2022

You can use whatever version of react-native-reanimated (v2.x) you want as long as it aligns with the version this module is using, in your case you had 2.4.1 while this package requires 2.8.0, this mismatch caused the issue , that’s why I’ve proposed to use resolutions https://github.com/georstat/react-native-image-cache/issues/22.

I understand that this is an aggressive approach, we will loosen the requirement of using a specific version of reanimated as this causes troubles like yours. I think it might not be necessary to add instructions on README, we’ll see.

1reaction
scarauxcommented, May 22, 2022

Thank you for assisting me and for the fast replies. Appreciate it 👍🏻

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invariant Violation: Module AppRegistry is not a registered ...
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is ...
Read more >
react native - Module AppRegistry is not registered callable ...
Trying to start everything up today resulted in this error along with Invariant Violation: Invalid prop 'position' of value 'fixed' supplied to ...
Read more >
invariant violation: module appregistry is not a registered ...
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application ...
Read more >
Invariant Violation: Module AppRegistry is not a registered ...
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that ...
Read more >
React-Native: Module AppRegistry is not a registered callable ...
Android : React-Native: Module AppRegistry is not a registered callable module [ Beautify Your Computer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found