HMR only works at the first time.

Do you want to request a feature or report a bug?


What is the current behavior?

HMR only works at the first time. Later on, it keep refreshing page.


If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

It should not refresh the page.

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Node.js version: v8.9.4
Webpack: v4.0.1

Author: Fantashit

1 thought on “HMR only works at the first time.

  1. It has been fixed after I put transpileOnly option. I assume this is a problem of ts-loader

            test: /\.tsx?$/,
            loader: 'ts-loader',
              transpileOnly: true
            exclude: /node_modules/

Comments are closed.