Skip to content
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

HMR doesn't work after reconnect on Webpack restart #220

Open
constgen opened this issue Mar 18, 2021 · 0 comments
Open

HMR doesn't work after reconnect on Webpack restart #220

constgen opened this issue Mar 18, 2021 · 0 comments

Comments

@constgen
Copy link

  • Webpack Version: 4
  • Operating System (or Browser): Windows 10
  • Node Version: 12
  • webpack-plugin-serve Version: 1.3.0

How Do We Reproduce?

I am using these options in Plugin config

{
  hmr: true,
  client: {
    retry: true
  }
}
  1. Then I change something
  2. Stop Webpack
  3. Change something else
  4. Start Webpack again
  5. Change something else again

In the console I see

⬡ wps: Hot Module Replacement is active
⬡ wps: WebSocket connected 
⬡ wps: Build 7dff02d replaced:
...
⬡ wps: The WebSocket was closed and will attempt to reconnect
Error: Firefox can't connect to the server ws://192.168.31.5:3000/wps.
⬡ wps: WebSocket connected 

Expected Behavior

On resarting Webpack the webpage should reconnect and refresh to display content that was changed between restarts. On all following changes HMR should hot reload the app

Actual Behavior

The page reconnects but doesn't hot reload or live reload

@constgen constgen changed the title HMR doesn't work after rReconnect on Webpack restart HMR doesn't work after reconnect on Webpack restart Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant