Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invarian Violation: Module HMRClient is not registered (RN 0.61.5) #4

Open
ryantrem opened this issue Mar 17, 2020 · 1 comment
Open

Comments

@ryantrem
Copy link

Just tried this out on a brand new project using React Native 0.61.5 and as soon as I try to use something from my sym linked package I get this error in my app (after the bundle has loaded 100%):

Invariant Violation: Module HMRClient is not a registered callable module (calling setup)

This is using the default configuration suggested for metro.config.js. Any ideas?

@ryantrem
Copy link
Author

After more investigation I found that the package.json file created by create-react-native-module MyLibrary includes react-native in the devDependencies. If I remove this, then I don't get the above error. I'm not sure if the blacklisting stuff that metro-symlinked-deps provides is supposed to be helping with this or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant