Skip to content

Hot reloading not longer working without specifying the port yourself #293

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

Closed
PieterBoeren opened this issue May 7, 2021 · 1 comment
Closed

Comments

@PieterBoeren
Copy link
Contributor

  1. Create a new single-spa application
  2. Update all dependencies to latest (including webpack)
  3. Start the project with the start script (notice the 8080 port)
  4. Open the single-spa playground in the browser with the devtools open, notice all kinds of webpack-dev-server errors

When I change the start script to contain a port (start": "webpack serve --port 8080"), everything works again.

It has probably something to do with the fixes in webpack-cli/serve as seen in the changelog: https://github.com/webpack/webpack-cli/blob/master/packages/serve/CHANGELOG.md

My workaround would probably be to add a static port to all my single-spa applications/libraries, but if this issue can't be solved without that, I guess an option to set a static port should be added to the creation wizard of create-single-spa.

@jolyndenning
Copy link
Member

Appears to be a regression in @webpack-cli/serve. I created https://github.com/webpack/webpack-cli/issues/2696 - it's probably better to track it there since it's not something that can be fixed here in create-single-spa.

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

2 participants