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.

React native Invariant Violation: Module AppRegistry...

See original GitHub issue

I’m setting up a monorepo with a typescript react native project, and have been facing an error when trying to import my shared code into my RN project. The error is: Invariant Violation: Module AppRegistry is not a registered callable module and if I refresh the app it changes to Invariant Violation: No callback found with cbID 2 and callID 1 for module <unknown>. Args: '[{"app_state":"active"}]' I’ve seen comments and issues telling people to restart the packager with --reset-cache or reinstall node_modules, and so on, none of those work.

If I comment out the import/usage of imported element from the other package it stops giving me the error and works fine. (packages/supplier_mob/App.tsx line 28 and 54)

Have anyone experienced it and know how to fix it? Let me know if any questions.

Steps to Reproduce (for bugs)

I’ve stripped the sensitive code and created a minimal reproducible repo at https://github.com/GlisboaDev/learna_mr

lerna.json

{
  "packages": [
    "packages/*"
  ],
  "version": "0.0.0"
}

Context

The end goal is to have an environment where I can share code between multiple react-native and reactJS projects.

Your Environment

Executable Version
lerna --version 3.20.2
npm --version 6.13.7
yarn --version 1.22.4
node --version v13.11.0
OS Version
macOS Catalina 10.15.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

3reactions
yayanarthacommented, Aug 9, 2020

I also have this issue when applied react-native-navigation

1reaction
BenjaminWattscommented, Jan 4, 2021

Hi - I am having similar issues unfortunately. Anyone made any progress at all?

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 ... - GitHub
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is ...
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