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.

[BUG] error: bundling: NotFoundError: Cannot find entry file index.ios.js in any of the roots

See original GitHub issue

When I run the react native app on the simulator by react-native run-ios, this error appear:

image

error: bundling: NotFoundError: Cannot find entry file index.ios.js in any of the roots: ["/Users/goon/HelloRN/node_modules/react-native/packager"]
    at DependencyGraph._getAbsolutePath (/Users/goon/HelloRN/node_modules/react-native/packager/src/node-haste/DependencyGraph.js:280:11)
    at DependencyGraph.getDependencies (/Users/goon/HelloRN/node_modules/react-native/packager/src/node-haste/DependencyGraph.js:218:26)
    at Resolver.getDependencies (/Users/goon/HelloRN/node_modules/react-native/packager/src/Resolver/index.js:107:27)
    at /Users/goon/HelloRN/node_modules/react-native/packager/src/Bundler/index.js:591:37
    at next (native)
    at step (/Users/goon/HelloRN/node_modules/react-native/packager/src/Bundler/index.js:12:445)
    at /Users/goon/HelloRN/node_modules/react-native/packager/src/Bundler/index.js:12:605
    at process._tickCallback (internal/process/next_tick.js:103:7)
Bundling `index.ios.js`  0.0% (0/1), failed.

What I’ve tried:

watchman watch-del-all
rm -rf node_modules && npm install
npm start -- --reset-cache

then react-native run-ios

…even tried to re-install react & react native

But it’s still not working.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
switchptcommented, Jun 11, 2017

@mrgoonie seems to be working fine with react-native 0.45.1 version

2reactions
grabboucommented, Jun 12, 2017

It was a regression that was fixed in 0.45.1. For reference, here’s the commit that fixes it: https://github.com/facebook/react-native/commit/39e0750223a46ba39f7f22f5d8a49f5aca33e378

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Find entry file index.ios.js in any of the project roots ...
I am getting this in the terminal: Loading dependency graph, done. error: bundling: Error at DependencyGraph._getAbsolutePath (/Users/neo/ ...
Read more >
Addressing common errors in React Native - LogRocket Blog
Solution 1: Package the bundle correctly. All of your app's JavaScript is bundled into the index.android.bundle file.
Read more >
Troubleshooting Your Setup | BigCommerce Dev Center
If bundling your theme triggers multiple lint errors related to the bundle.js file, your theme is missing the .eslintignore file. Retrieve this file...
Read more >
bundling failed: NotFoundError: Cannot find entry file index.ios ...
error : bundling failed: NotFoundError: Cannot find entry file index.ios.js in any of the roots: ["/Users/hld/Desktop/project/RN/ZRApp"] at ...
Read more >
How to create React Native App for Android, iOS and Web ...
There were some errors after doing so, which I resolved. Error ERROR in ./index.web.js 1:261-292. Module not found: Error: Can't resolve '.
Read more >

github_iconTop Related Medium Post

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