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.

[0.28.0] - Native module cannot be null - Cannot find entry file

See original GitHub issue

Upgrading an app from 0.27.2 to 0.28.0 I get this message in simulator with no stack trace: image

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:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

17reactions
7ynk3rcommented, Sep 6, 2016

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

pod 'React', :path => '../node_modules/react-native', :subspecs => [
  'Core',
  'RCTText',
  'RCTWebSocket', # needed for debugging
  'RCTNetwork', # this is the missing one!!
  # Add any other subspecs you want to use in your project
]
6reactions
JohnyDayscommented, Jul 4, 2016

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-native, "Native module cannot be null" - Stack Overflow
I just upgrade React-native from 0.28 to 0.30, and get this error: "Native module cannot be null". For example, I am using the...
Read more >
nodegit | Yarn - Package Manager
We've batched these requests and performed them on a single async worker. There are now native implementations of the following: Repository.prototype.
Read more >
Ios – React-Native Build Succeeded – Native module cannot be null ...
I am trying to get it to run in simulator for iOS. The build is succeeding but I am seeing a red screen...
Read more >
Migrating to Expo throws Native Module cannot be null error
I keep getting a Native Module cannot be null error whenever I have an import statement referencing a react-native-firebase library.
Read more >
unable to resolve "firebase" from "app.js" - You.com
React Native index.js unable to resolve path to module '/src/App.js ... imports - firebase could not be found within the project or in...
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