stephencookdev / speed-measure-webpack-plugin

⏱ See how fast (or not) your plugins and loaders are, so you can optimise your builds
MIT License
2.42k stars 79 forks source link

TypeError: Class extends value undefined is not a constructor or null #165

Open chenjian0915 opened 3 years ago

chenjian0915 commented 3 years ago

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

chenjian0915 commented 3 years ago

Modify the version of mini-css-extract-plugin to 1.3.5 to solve the problem

beanlee commented 3 years ago

+1 same issue

beanlee commented 3 years ago
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)