Metro and the client are out of sync. Reload to reconnect.
See original GitHub issueEvery once in a few saves when using a new tailwind class I get this error: Metro and the client are out of sync. Reload to reconnect.
If I’m using tailwind classes that I’ve already used (they currently exist in tailwind.css), I never get the error.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Disconnected from the Metro server. Reload to reconnect
Using RN with Expo, I've started getting the Disconnected from the Metro server. Reload to reconnect error to appear pretty much every time ......
Read more >[SDK 45.0.1][expo-dev-client] No reconnect to Metro ... - GitHub
Open developer menu and hit "reload"; App will be blank and white. I am not sure why expo-dev-client can't reconnect to Metro in...
Read more >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 ...
Read more >react native metro bundler not starting : Solved Solution
Recently a lot of programmers are having issue on using a react native init application to start an app all because of a...
Read more >How do I stop Metro Server/Expo from quitting unexpectedly?
This happens to me i usually just click "R" to reload it and it connects without have to stop and start the server...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I ran into this same issue. I attempted to add a custom
metro.config.js
to my project to add middleware, but I was not able to figure it out. If someone smarter than me wants to help, I think there may be a race condition where metro is watching files so that it can run HMR (fast refresh). But since some files change immediately because ofyarn dev:tailwind
, my hypothesis is that this causes metro to get out of sync.Instead of running
yarn dev:tailwind
, I wonder if it’s possible to runyarn build:tailwind
before metro executes HMR? Just an idea.Awesome, thanks for the recording!