-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[0.45.0] Project roots are incorrect if packager starts when invoking react-native run-ios
#14376
Comments
+1 |
Looks like a duplicate of #14366. |
#14366 has the same reproduction steps and might be related, but is a different error. Note that it seems to persist even if you run the packager with |
run-ios and run-android not working.
|
Maybe this commit broke build |
@ds300 Check out your console when you get this error. At least for me, these errors seem to go hand in hand. |
@ds300 what version of React do you have in your node_modules? Make sure it's 16.0.0-alpha12+. I had the same issue and it was because npm was giving me 15.4.4 |
+1 |
I have the same issue with run-android. |
@dmr07 How can i check version of React in node_modules? How can i upgrade this? Sorry, i'm newbie. |
that's how i've solved the issue in my Windows PC:
|
I posted a solution in a different thread.
|
@dmr07 Version in packackage.json and node_modules is "react": "16.0.0-alpha.12"
|
@ethanyanjiali |
haven't tried android. but |
@ccdwyer in the packager output I see the same error message as I get in the red screen of death. @dmr07 my react version is 16.0.0-alpha12 @ethanyanjiali That didn't work for me. Did you make sure the packager wasn't already running before trying FWIW I think this is just an issue with how the packager gets invoked by the react-native cli if it is not already running. Haven't had time to debug it though, sorry. |
@ethanyanjiali this only works because you are starting the packager with |
In my case: Open terminal Tab 01: react-native start Should work :-p |
Let me rephrase the solution again:
|
I used this solution and succeed twice (one for upgrading from 0.44 to 0.45, one for downgrading from 0.46 to 0.45) |
@anhtuank7c Thanks! |
@kostap13 Hmm. Here is what I did to resolve the error:
|
Summary: Splits `ConfigT` into `ConfigT` (core + packager configuration) and `RNConfig` (RN CLI configuration). Also guarantees that all values on `ConfigT` have a default when loading user configuration. Reviewed By: jeanlauliac Differential Revision: D4985965 fbshipit-source-id: bf036e22d6809e49746a9c3aa240ec403a085342
@kostap13 236e9e4 is unrelated to this, as that commit is not in the 0.45 or 0.46 releases. |
Closing as duplicate of #14246. |
Steps for reproduction
First make sure you have no react-native packager instance running
Effect
I get the error
Cannot find entry file index.ios.js in any of the roots: ["/Users/dshe/code/Bananas/node_modules/react-native/packager"]
Workaround
Start the packager from
yarn start
The text was updated successfully, but these errors were encountered: