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.

[Packager] Cannot read property 'root' of null

See original GitHub issue

Hello, I tried to update react-native or reinstalled it but no positive effect. This happens right after launching the app. Does anyone has more info on this ? Thanks

TypeError: Cannot read property 'root' of null
    at /Users/isasportas/Projects/canalplus/iOS/RemoteX1/node_modules/react-native/packager/react-packager/src/DependencyResolver/crawlers/index.js:16:84
    at tryCallOne (/Users/isasportas/Projects/canalplus/iOS/RemoteX1/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
    at /Users/isasportas/Projects/canalplus/iOS/RemoteX1/node_modules/react-native/node_modules/promise/lib/core.js:103:15
    at flush (/Users/isasportas/Projects/canalplus/iOS/RemoteX1/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)
    at process._tickCallback (node.js:355:11)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:62 (17 by maintainers)

github_iconTop GitHub Comments

7reactions
xcatliucommented, Sep 14, 2015

I’ve bought a new MacBook Pro and the problem fixed.

4reactions
mrspeakercommented, Jul 6, 2015

Ah, good tip @chirag04: updating watchman (brew update and brew upgrade watchman) fixed this issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'root' of null React Native iOS
React packager ready. Failed to build DependencyGraph: Watchman error: Cannot read property 'root' of null. Make sure watchman is running ...
Read more >
cannot read properties of null (reading 'package') - You.com
The error message means that npm is trying to read the version property of the folder's package.json file but doesn't find the file....
Read more >
Cannot read property 'subscribe' of undefined - ng-mocks
Highly likely, this means that under the hood the kept module is using a root provider which has been mocked, because ng-mocks mocks...
Read more >
Cannot read property 'root' of null 解决方法_NSNirvana的博客
运行一个ReactNative程序,结果出现这种情况.. ... React packager ready. [11:25:37] <START> fs crawl. TypeError: Cannot read property 'root' ...
Read more >
ember test throw error - Cannot read property 'tagName' of ...
I think the thing to look into is what is going on at that line in your vendor.js . From the stack trace...
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