Skip to content
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.ios.js in any of the roots" #10360

Closed
ghost opened this issue Oct 13, 2016 · 6 comments
Closed

"Cannot find entry file index.ios.js in any of the roots" #10360

ghost opened this issue Oct 13, 2016 · 6 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ghost
Copy link

ghost commented Oct 13, 2016

Having trouble loading js bundle through packager while debugging on device. I can see the request come through from the device but packager sticks at "find dependencies". I can successfully retrieve the bundle in chrome using the same IP.


My jsCodeLocation:

jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"192.168.1.215:8081/index.ios" fallbackResource:nil];

I've added this to my Info.plist to no avail:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

First request from chrome successful, second request from device unsuccessful

screen shot 2016-10-12 at 11 41 46 pm

Error on device

img_6717

Additional Information

  • React Native version: 0.32
  • Platform(s) (iOS, Android, or both?): iOS 10
  • Operating System (macOS, Linux, or Windows?): macOS Sierra
@ghost
Copy link
Author

ghost commented Oct 21, 2016

No longer needed IP prefix. Fixed by changing jsCodeLocation back to:

jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

@ghost ghost closed this as completed Oct 21, 2016
@emadd
Copy link

emadd commented Jun 7, 2017

Getting this in 0.45.0, Mac OSX Sierra

@yinchonging
Copy link

yinchonging commented Jun 8, 2017

Getting this in 0.45.0, Mac OSX Sierra;

fixed this by #4035

@mmckinley8
Copy link
Contributor

Can someone reopen this? I didn't start seeing this until upgrading to 0.45.0 today.

@flyandi
Copy link

flyandi commented Jun 9, 2017

Still happening to me, too. Cleaned out everything. No go.

@parkerdan
Copy link

The path to the server is not found. Just re-start the server manually by cd { your project } npm start

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants