[BUG] error: bundling: NotFoundError: Cannot find entry file index.ios.js in any of the roots
See original GitHub issueWhen I run the react native app on the simulator by react-native run-ios
, this error appear:
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:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mrgoonie seems to be working fine with react-native 0.45.1 version
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