Open chenjian0915 opened 3 years ago
Modify the version of mini-css-extract-plugin to 1.3.5 to solve the problem
+1 same issue
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
Error: You forgot to add 'mini-css-extract-plugin' plugin (i.e. `{ plugins: [new MiniCssExtractPlugin()] }`), please read https://github.com/webpack-contrib/mini-css-extract-plugin#getting-started
at Object.pitch (/Users/xxxx/node_modules/mini-css-extract-plugin/dist/loader.js:50:14)
The reason for the error is that when the version of mini-css-extract-plugin is greater than 1.3.5, when speed-measure-webpack-plugin is used, the title error will be reported webpack version: 5.27.2 webpack-cli version: 4.5.0 speed-measure-webpack-plugin version: 1.3.1 mini-css-extract-plugin version: >1.3.5
Modify the version of mini-css-extract-plugin to 1.3.5 to solve the problem