question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[0.45.0] Project roots are incorrect if packager starts when invoking `react-native run-ios`

See original GitHub issue

Steps 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"]

image

Workaround

Start the packager from yarn start

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:26 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
anhtuank7ccommented, Jun 8, 2017

In my case:

Open terminal Tab 01: react-native start Open terminal Tab 02: react-native run-ios

Should work :-p

2reactions
OmgDefcommented, Jun 7, 2017

+1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found