[0.45.0] Project roots are incorrect if packager starts when invoking `react-native run-ios`
See original GitHub issueSteps for reproduction
First make sure you have no react-native packager instance running
react-native init Bananas
cd Bananas
react-native run-ios
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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:26 (2 by maintainers)
Top Results From Across the Web
Beset with errors trying getting started with react-native.
If it doesn't work, kill xcode and the packager again, open the project with 'open ios/.xcodeproj', hit the run button and see if...
Read more >Troubleshooting - React Native
If you added React Native manually to your project, make sure you have included all the relevant dependencies that you are using, like...
Read more >React Native | WebStorm Documentation - JetBrains
Select Run 'npm install' or Run 'yarn install' from the context menu of package.json in the editor or in the Project tool window....
Read more >react-native | Yarn - Package Manager
React Native brings React's declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access...
Read more >npx react-native run-android build failed - You.com
Per the error message, it sounds like npx may be resolving to a legacy react-native binary. If you have previously installed react-native-cli, this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In my case:
Open terminal Tab 01: react-native start Open terminal Tab 02: react-native run-ios
Should work :-p
+1