Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HMR in Webpack 5? #283

Open
slightlyfaulty opened this issue Jun 24, 2020 · 0 comments
Open

Support HMR in Webpack 5? #283

slightlyfaulty opened this issue Jun 24, 2020 · 0 comments

Comments

@slightlyfaulty
Copy link

Any chance of updating HMR to work in Webpack 5?

This is the error being thrown when using HMR with webpack-dev-server:

TypeError: Cannot read property 'getModuleIndex2' of undefined
    at ExtractCssChunksPlugin.renderContentAsset (.../node_modules/extract-css-chunks-webpack-plugin/dist/index.js:312:27)
    at Object.render (.../node_modules/extract-css-chunks-webpack-plugin/dist/index.js:172:32)
    at .../node_modules/webpack-5/lib/HotModuleReplacementPlugin.js:380:32
    at Hook.eval [as callAsync] (eval at create (.../node_modules/webpack-5/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (.../node_modules/webpack-5/node_modules/tapable/lib/Hook.js:18:14)
    at cont (.../node_modules/webpack-5/lib/Compilation.js:1913:32)
    at .../node_modules/webpack-5/lib/Compilation.js:1956:8
    at .../node_modules/neo-async/async.js:2830:7
    at Object.each (.../node_modules/neo-async/async.js:2850:39)
    at Compilation.createChunkAssets (.../node_modules/webpack-5/lib/Compilation.js:2693:12)

It's essentially the same issue as webpack-contrib/mini-css-extract-plugin#487 which has been ignored for half a year. It would be pretty great if there was an alternative that the community could actually use for HMR in Webpack 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant