-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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.android.js in any of the roots #14386
Comments
I'm getting this too on a freshly created app (react-native init foo) using react-native-cli 2.0.1 on OSx. |
@coma Same here. |
The bundling process is failing somehow... |
Yup..waiting for an expert to help here. |
Same problem since upgrade react native 0.44 to 0.45 |
I know this not the answer for 0.45 but this solved all my problem like yours or this one -> 14209 I think I will stay at 0.44.0 for now. 0.44.1~3? Didn't work for me. |
Yupe, after initing a new app, just downgraded to react-native@0.44.2 and it's working now... |
Yeap, downgraded to 0.44.0 and works now. In cause somebody doesn't know how to downgrade react, you need to install: https://github.com/facebook/react-native/tree/master/react-native-git-upgrade |
Me too get the same. Hope someone help |
Got the same issue. |
Same issue. |
The same issue occurred to me after upgrading from 0.44. In my case After that I had to do some other changes to codebase. I had I was also using Hope this helps someone. |
Also having this problem. Downgrading works, as suggested. But creating brand new app with latest react-native-cli gives the "Cannot find entry file..." error. |
Same problem since upgrade react native 0.44 to 0.45 |
+1 |
Same problem with 0.45 |
+1 |
|
+1 |
0.45 seems to have a whole different project structure and entry point. The docs just got updated btw. The new entry point seems to be App.js, placed on the root. |
@ggcaponetto what? I don't see a new project structure. Are you saying that react-native-cli isn't generating the appropriate project structure and that could be the issue? |
@ggcaponetto that is only the case when a new project is created using |
You are right, sorry to have brought confusion. |
When running react-native run-android on React-native 0.45, the packager is looking for JS files in \Project\node_modules\react-native\packager. That's why It's not finding the index.android.js file. If I use react-native start, the packager will start looking for JS files in the correct place (\Project). |
The fix which seem to work well is upgrading your project to the current version 0.45.
PS- If you have installed additional packages like react-navigator from npm you need to reinstall them again.
|
@samartha-kar23 So I need to upgrade a project I just created from scratch? That's not a fix. A brand new |
In first console window, from project folder run: In second console window, from project folder run: |
Closing as duplicate of #14246. |
"react-native init YourAppName" creates an application with the react native version 0.45.0 and that creates the problem. |
The text was updated successfully, but these errors were encountered: