I ran into a similar problem. After 2 days of research and trying different things,I found out the simplest cause to my problem ever: in webpack.config.js,I had a HRM dev server enabled.
And I also had a HMR server run from command line.
just by removing --hot from command line, it works OK now.
current webpack.config.js
devtool: "inline-source-map",
devServer: {
publicPath: '/dist/',
contentBase: path.join(__dirname, 'public'),
port: 9000,
hot: true
},
With this configuration, don't do this:
npx webpack-dev-server --hot --inline
해결방안
Do this: npx webpack-dev-server