-
Notifications
You must be signed in to change notification settings - Fork 2
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
Example App Crashing After Adding Dependencies to Module #42
Comments
Thanks @agentile1990 for the detailed reproduction. I was able to reproduce at least one of your errors. The quick workaround is to remove node_modules from the library root (not from the example) and restart the Metro Bundler. (I think I did redo Another idea for you may be to add I may need some time to further investigate this one and see if it affects create-react-native-module as well or not. This will need to be documented at the very least. Thanks again! |
FYI I reproduced the same issue on Android, with non-view library. I tried removing node_modules from the library root and restarting the Metro bundler, worked after I reinstalled the app. I will try this on create-react-native-module next. (create-react-native-module works a little differently since it does |
Thanks for reporting this @agentile1990 . I've encountered the same issue, I didn't even realise it was this module until I went to create a simple reproduction and saw the notice:
|
Situation:
react-nativemodule-init
to create a library, with a view, and an example app. Everything is working properly.yarn add prop-types
in the library root (not example)Issue:
When the app launches on the iOS simulator, there are 3 errors in the Javascript console:
Once I start throwing these errors, I cannot get the example app to run again.
I've cleared out Metro Bundler's cache. I've cleaned build folders. I've removed node_modules folders and installed fresh packages. I've removed Pods and installed fresh pods. I've restarted m machine.
The ONLY way I can get it to run again is by pushing my branch to GitHub, removing the directory from my machine, cloning from GitHub, running
yarn
andpod install
for the example folders.The fix leads me to believe that something must be cached that I'm not clearing out. Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: