Skip to content

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

Closed
@PieterBoeren

Description

@PieterBoeren
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions