webpack-hot-middleware icon indicating copy to clipboard operation
webpack-hot-middleware copied to clipboard

Webpack 3 breaks

Open turbo5 opened this issue 7 years ago • 3 comments

Seemingly chunk.mapModules is not supported anymore in Webpack 3, so this breaks the hot realoading.

"webpack": "^3.10.0", "webpack-hot-middleware": "^2.21.0",

TypeError: chunk.mapModules is not a function at chunks.forEach.chunk (\node_modules\webpack\lib\HotModuleReplacementPlugin.js:64:47) at Array.forEach ()

turbo5 avatar Dec 10 '17 22:12 turbo5

I started a new project today using the latest version of webpack and this middleware, so I suspect it's not quite as straightforward as you describe.

There's probably something specific about your config which triggers the issue.

Do you get a successful bundle if you run webpack without the hot middleware?

glenjamin avatar Dec 10 '17 22:12 glenjamin

Any news of this ?

cr0cK avatar Dec 23 '17 12:12 cr0cK

I have this error when I use “monkeypath.js" for webpack. If you also installed, remove it.

yy8597 avatar Feb 09 '18 03:02 yy8597