Reputation: 53
My two apps stopped connecting with metro overnight. Local IP address hasn’t changed.
When I run them with "npx expo start --dev-client” as I always do, they both sit on the splash screen with a message banner saying "loading from metro..." And then after a while I get the white error screen with "could not connect to development server". This obviously means there’s a connectivity problem but I’ve spent all day verifying everything and trying to troubleshoot it to no avail. And the only thing I find on the web is related to IP change.
I’ve noticed that it works only once when I just start VSCode. If I try to run my second app it won’t work. Even if I close the running app and try it again it won’t work. If I restart VSCode, again it works once and no more. It’s as if VSCode is set to allow one Node server per session.
The only thing different between the time that it worked and it stopped working is my VSCode updated to 1.88 yesterday morning. It doesn’t make any sense that that’s the culprit, but that’s the only thing that’s different.
I'm all out of ideas.
Upvotes: 1
Views: 690