mcnamee / react-native-starter-kit

:rocket: A React Native boilerplate app to get you up and running very, very quickly :rocket:
MIT License
3.35k stars 863 forks source link

Cannot find entry file index.js #118

Closed beratuslu closed 7 years ago

beratuslu commented 7 years ago

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. Bundlingindex.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 commented 7 years ago

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 commented 7 years ago

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?