Error : Failed to load bundle localhost:8081

react-native failed to load bundle could not connect to development server
react navigation failed to load bundle
sourceurl http localhost 8081 index bundle platform android&dev true&minify false
react-native bundle index js failed
react native run-ios
react-native bundle not loading
loading from localhost:8081
nsurlerrordomain code=-999 react-native

I just have an issue when i run react-native run-ios, following message is showing and i think it's related to babel :

Someone has already this issue please ?

"GET /index.bundle?platform=ios&dev=true&minify=false HTTP/1.error: bundling failed: Error: Unable to resolve module `@babel/runtime/helpers/interopRequireDefault` from `/Volumes/SD/react/PropertyFinder/index.js`: Module `@babel/runtime/helpers/interopRequireDefault` does not exist in the Haste module map

thank you

I have same issue. I tried to install

npm add @babel/runtime

then

npm install

It works for me, i hope it helps you.

Failed to load bundle localhost 8081 on 0.59 version · Issue #24051 , cd AwesomeProject && react-native run-ios. Then iPhone emulator starts up, app launches for the second and then it throws the same error @  React: 16.8.4; React-native: 0.59. Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sometimes different programs use same ports like 80,8080 or 8081, when I face this problem I set the default port to 8088. And It works perfect.

Try

react-native run-ios --port=8088

If changing port isn't work, try this. This will install the @babel/runtime package to your project.

npm add @babel/runtime

npm install

After this re-compile your project.

I hope it works.

Failed to load bundle(http://localhost:8081/index.bundle?platform , iOS: Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=​true&minify=false) with error:(Could not connect to  @dam00n yes I got it working on 0.55.1, however, that was a very bad version of RN, with a lot of "deprecated" warnings. I'll look a little deeper into it tomorrow and see if I can find an easy fix for it to work on 0.57.0.

Soluton that works:

rm -rf ios/build/; kill $(lsof -t -i:8081)

iOS: Could not connect to development server. · Issue #19483 , Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=​true&minify=false) with error:(Metro Bundler has encountered an  We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand

Metro Bundler has encountered an internal error, app fails to load , Failed to load bundle(http://localhost:8081/index.bundle?platform=ios) with error​:(Could not connect to development server. Ensure the following: - Node server  This issue is caused by the fact babel-preset-react-native depends on babel@v7.0.0-beta.40.. This version had an issue on babel-plugin-transform-block-scoping, as at this stage babel-helper-plugin-utils had not yet been created, and this one (created on v7.0.0-beta.41) is used to set a default {} for the options when they are not present (see here), that's the case for babel-plugin-transform

Having an issue when using react native from within an ios project , failed to load bundle localhost 8081 index.bundle platform=ios cannot find entry file via Xcode however when the application runs I constantly get an ERROR. There is definitely an issue at the moment running debug mode on the device. We have an rpc server running on the device/simultor to serve api calls when in debug mode - when running on the device chrome is trying to hit localhost rather than the server on the device which fails.

Developers, Just to help you debug this; The error message indicates that the React Native packager cannot be reached by the app. In debug, the app is installed on your  On Mar 8, 2017, at 2:13 AM, mac2066 ***@***.***> wrote: Same problem. I found JsCodeLocation = [[RCTBundleURLProvider jsBundleURLForBundleRoot:@ sharedSettings] "index.ios" fallbackResource:nil]; Take effective address not, this happens in connection to the network situation (and not all networks such), when this happens, disconnected from the network, I think, in a virtual machine can run in

Comments
  • Have you tried deleting you're node modules and then try npm install?
  • Hi, thanks for help, yes i have, but issue persist.
  • Please explain your solution and why it works so that others can understand.