-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
Could not connect to development server after updating react-native. #23380
Comments
We are automatically closing this issue because it does not appear to follow any of the provided issue templates. 👉 Click here if you want to report a reproducible bug or regression in React Native. |
we changed our |
I have same issue after that react native@0.59.1 update. |
having same problem +1 |
Hi Hackdie I was create new project and move all files to new project (Not node modules) and installed and linked packages then solved. |
@mttirpan seems like my problem was on Android 9 and manifest. Andorid 9 blocks the connection by default unless I change it on the manifest |
@hackdie What did you do? |
add
|
Also had this problem on Android 9 on a simulator, fixed by adding |
@hackdie YOU SAVED MY LIFE 👏 |
@hackdie Thanks. |
It seems like there’s no way in RN 0.59.5 to make the app on Android emulator (API 28) connect to the packager. Adding |
as you can read here maybe it's better to add only a white list Add/Modify the file res/xml/network_security_config.xml
in AndroidManifest.xml
|
try cd android |
Sadly this didn't work too for me |
I already had What worked for me was to open the dev menu and "change" the bundle location to EDIT: |
In my case, the error occurred after I installed the app in a different virtual device, and I don't know why the debug server host and port automatically gets blank. But thanks to @hackdie and @luigimannoni. Their solutions helped solving my problem. |
I'm trying to update from react-native 0.55.4 to react-native 0.58.3.
The issue I'm facing is that my app cannot connect to the metro bundler.
Despite adb reverse, the emulator as well as a physical device cannot connect to it.
I can open the URL just fine in the chrome browser of the device, but the app can't connect to it.
I have followed the update notices in the changelogs, resulting in the following package.json:
I have left out the unimportant packages.
I have also changed the .babelrc file to:
Environment info:
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: