Disconnected from the Metro server. Reload to reconnect

Hello,
For some time, something is wrong with the metro-bundler/build service, and I’m not able to figure out why I constantly get “Disconnected from the Metro Server. Reload to reconnect” every time I Save a file for changes.

Yesterday, I posted similar question on SO - https://stackoverflow.com/questions/61402656/disconnected-from-the-metro-server-reload-to-reconnect.

And I also looked into node_modules/react-native/scripts/react-native-xcode.sh, but I found no reference to XIP in there.

Can someone please help, as this has gotten very annoying to shake device everytime lol.
Thank you!

Below is expo diag:

Expo CLI 3.18.6 environment info:
    System:
      OS: macOS High Sierra 10.13.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 13.9.0 - ~/.nvm/versions/node/v13.9.0/bin/node
      Yarn: 1.21.1 - /usr/local/bin/yarn
      npm: 6.13.7 - ~/.nvm/versions/node/v13.9.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 3.1 AI-173.4819257
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^36.0.0 => 36.0.2 
      react: 16.9.0 => 16.9.0 
      react-native: https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz => 0.61.4 
    npmGlobalPackages:
      expo-cli: 3.18.6

are you using managed workflow or bare?

1 Like

managed workflow.

Edit: I couldn’t put more links in my first post, but I looked at these two:
https://github.com/facebook/react-native/issues/12786 and https://github.com/facebook/metro/commit/079dcaed990abb6754c03113362e4f537cd32a24

but I’m not sure it applies, as I couldn’t find XIP anyways.

gotcha. if you’re using managed workflow then react-native-xcode.sh is never actually executed.

what connection type are you using? localhost? lan? tunnel?

Interesting. (I always try to use what you guys have out of the box, because it all just works so well!)

I use LAN. Btw, when using iOS simulator, there’s no problem (if it helps).

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.