Skip to content

HMR broken with historyFallback in Firefox #94

@davidroeca

Description

@davidroeca
  • Webpack Version: 4.23.1
  • Operating System (or Browser): Linux Mint 18.2 Cinammon 64-bit (Firefox 65.0 and 64.0.2)
  • Node Version: 11.3.0
  • webpack-plugin-serve Version: 0.4.0

How Do We Reproduce?

With the given Firefox versions, run the react recipe in this repo.

Expected Behavior

HMR works as expected with historyFallback on Firefox. This is especially important if I'm developing an app that relies on something like https://github.com/ReactTraining/react-router for SPA purposes.

Actual Behavior

Notice in the console that the following error occurs: Firefox can’t establish a connection to the server at ws://[::]:55555/wps..

Now kill the start script, remove the historyFallback option and restart. The bug now should be fixed.

Note that this problem does not exist on current versions of Chrome/Chromium.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions