Closed
Description
- Operating System:
- Node Version: 13.3
- NPM Version: 6.13.1
- webpack Version: 5.0.0-beta.11
- mini-css-extract-plugin Version: 0.9
HMR code
{
loader: MiniCssExtractPlugin.loader,
options: {
publicPath: '../',
sourceMap: CreateSourceMap,
hmr: watchMode,
reloadAll: true,
},
},
Expected Behavior
- Run webpack in watchmode with HMR
- compile css, no issue
- rerun, no issue :)
Actual Behavior
- Run webpack in watchmode with HMR
- compile css, no issue
- rerun, issue :(
TypeError: Cannot read property 'getModuleIndex2' of undefined at MiniCssExtractPlugin.renderContentAsset ([...]/node_modules/mini-css-extract-plugin/dist/index.js:301:27)
It seems that getModuleIndex2 is deprecated in webpack 5. I don't know if this plugin is already compatible. If needed I can create a repo with minimal code.
Metadata
Metadata
Assignees
Labels
No labels