Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mrgoonie opened this issue Jun 9, 2017 · 7 comments

Comments

@mrgoonie
Copy link

mrgoonie commented Jun 9, 2017

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.

@cpojer
Copy link
Contributor

cpojer commented Jun 9, 2017

Please note this issue tracker is not a help forum. We recommend using StackOverflow for questions. Thank you :)

@cpojer cpojer closed this as completed Jun 9, 2017
@switchpt
Copy link

switchpt commented Jun 9, 2017

@cpojer Looks like an issue to me. react-native run-ios doesn't work after upgrade. Please see issue facebook/react-native#14314 as well.

@mrgoonie
Copy link
Author

That's funny when @skevy told us to open the issue over here (ref: facebook/react-native#14314), but then @cpojer close my issue and told me to open it... somewhere else??

@switchpt
Copy link

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

@joxad
Copy link

joxad commented Jun 12, 2017

Got the same problem after update from react-native 16.0.0-alpha.6 to 16.0.0-alpha.12
with react-native 0.45.0.
After update to 0.45.1 it's working. thanns @switchpt

@grabbou
Copy link
Contributor

grabbou commented Jun 12, 2017

It was a regression that was fixed in 0.45.1. For reference, here's the commit that fixes it: facebook/react-native@39e0750

@baba43
Copy link

baba43 commented Aug 17, 2017

I have the same error with react-native 0.46.1 and also 0.47.1 on Windows (created with create-react-native-app).

krmao added a commit to krmao/smart-metro that referenced this issue May 29, 2018
…dle/index.js, all split modules function is ok now ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants