webpack-contrib / webpack-hot-middleware

Webpack hot reloading you can attach to your own server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack 3 breaks

turbo5 opened this issue · comments

commented

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 ()

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?

Any news of this ?

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