[0.28.0] - Native module cannot be null - Cannot find entry file
See original GitHub issueUpgrading an app from 0.27.2 to 0.28.0 I get this message in simulator with no stack trace:
When I look at packager I get the message:
NotFoundError: Cannot find entry file global code@http://localhost:8081/index.ios.js in any of the roots: ["/Users/gantman/Documents/Projects/rn/MyApp"]
at DependencyGraph._getAbsolutePath (/Users/gantman/Documents/Projects/rn/MyApp/node_modules/node-haste/lib/index.js:288:13)
at /Users/gantman/Documents/Projects/rn/MyApp/node_modules/node-haste/lib/index.js:226:30
at process._tickCallback (node.js:379:9)
It looks like I’m not the only one: http://stackoverflow.com/questions/37999468/entry-file-error-in-react-native-from-packager/38044411
The stackoverflow issue claims this is due to dependencies that cannot handle 0.28.0 - which leads me to wonder what kind of error message would do that?
This is keeping our ignite project from progressing from 0.27.2 to 0.28 -> https://github.com/infinitered/ignite/issues/199
I’ve been trying to crack this nut for a few days, any feedback/help would be appreciated. I’m currently going to init a new project and add dependencies one at a time to see if I can find the culprit. Not a very fun process, but there doesn’t seem to be a clear opportunity otherwise.
Thanks ahead of time for whomever helps.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:12 (5 by maintainers)
In my case I was following the steps in the docs for
Integration With Existing Apps
.The example is broken. To fix it you need to add a pod subspec
For the record, in my case this error was occuring because I had not correctly setup push notifications on my xCode project. As soon as I linked the library, the error disappeared.