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

Cannot find entry file index.js #118

Closed
beratuslu opened this issue Oct 12, 2017 · 2 comments
Closed

Cannot find entry file index.js #118

beratuslu opened this issue Oct 12, 2017 · 2 comments

Comments

@beratuslu
Copy link

Hello guys,
I tried to add push notifications to my app with https://github.com/evollu/react-native-fcm module.
I end up with lots of errors and run many react commands on node including uprade commands.
Now on simulator red screen says "Can not find entry file index.js in any of to roots" and when I look at the ReactPackager it says:

Loading dependency graph, done. Bundling index.js [development, non-minified] 0.0% (0/1), failed. error: bundling failed: Error at DependencyGraph._getAbsolutePath (/Users/beratuslu/Desktop/react-native-starter-app/node_modules/metro-bundler/src/node-haste/DependencyGraph.js:305:11) at DependencyGraph.getDependencies (/Users/beratuslu/Desktop/react-native-starter-app/node_modules/metro-bundler/src/node-haste/DependencyGraph.js:283:4236) at Resolver.getDependencies (/Users/beratuslu/Desktop/react-native-starter-app/node_modules/metro-bundler/src/Resolver/index.js:129:5) at /Users/beratuslu/Desktop/react-native-starter-app/node_modules/metro-bundler/src/Bundler/index.js:642:39 at Generator.next (<anonymous>) at step (/Users/beratuslu/Desktop/react-native-starter-app/node_modules/metro-bundler/src/Bundler/index.js:13:1336) at /Users/beratuslu/Desktop/react-native-starter-app/node_modules/metro-bundler/src/Bundler/index.js:13:1496 at process._tickCallback (internal/process/next_tick.js:103:7)

image

Any help appreciated...

@mcnamee
Copy link
Owner

mcnamee commented Oct 14, 2017

I'd suggest opening an issue on the repo that's caused the issue as I don't have any experience with evollu/react-native-fcm.

You could also try installing the module on a base React Native init to see if there's any differences.

@beratuslu
Copy link
Author

So @mcnamee can you tell me why react-native looks index.js in main folder while its in the "./src/".
Has root option changed? Whats the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants