speed-measure-webpack-plugin icon indicating copy to clipboard operation
speed-measure-webpack-plugin copied to clipboard

use it with webpack5@beta22 VueLoaderPlugin It doesn't work

Open baoliwei opened this issue 5 years ago • 10 comments

baoliwei avatar Aug 19 '20 07:08 baoliwei

any solutions?

SunShinewyf avatar Nov 27 '20 03:11 SunShinewyf

https://www.npmjs.com/package/speed-measure-webpack5-plugin this plugin works

SunShinewyf avatar Apr 06 '21 09:04 SunShinewyf

I also encountered this problem.

ERROR in ./src/example/exampleTemplate/App.vue Module Error (from ./node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config. Error: vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

The plugins version is as follows: "speed-measure-webpack-plugin": "^1.5.0", "vue-loader": "^15.9.2", "webpack": "^5.50.0",

Reda011 avatar Sep 27 '21 08:09 Reda011

ERROR in ./src/App.vue Module Error (from ./node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config. Error: vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config. at Object.module.exports (/Users/mac/lw/1-my-project/wp-examples/node_modules/vue-loader/lib/index.js:36:29) @ ./src/index.js 3:0-28 24:13-16

webpack 5.51.1 compiled with 1 error in 2954 ms

I also encountered this problem.

liuwei2016 avatar Dec 17 '21 07:12 liuwei2016

此插件 https://www.npmjs.com/package/speed-measure-webpack5-plugin 工作原理

It doesn't work.

My code listed as follows:

const SpeedMeasurePlugin = require("speed-measure-webpack5-plugin"); const smp = new SpeedMeasurePlugin(); module.exports = smp.wrap(devWebpackConfig);

There is a TypeError thrown in the terminal.

TypeError: Cannot read property 'PROCESS_ASSETS_STAGE_ADDITIONS' of undefined .....

JUST-Limbo avatar Mar 17 '22 11:03 JUST-Limbo

Got the same Error too...

vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
        Error: vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

dep

"speed-measure-webpack-plugin": "^1.5.0",
"vue-loader": "^15.6.2",
"webpack": "^5.70.0",

Moreover, I got this deprecation warning after added speed-measure-webpack-plugin

(node:61012) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader

Wzb3422 avatar Apr 08 '22 11:04 Wzb3422

same Error

Module Error (from ../../node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

ekxs0109 avatar May 24 '22 02:05 ekxs0109

same error...

Module Error (from ../../node_modules/.pnpm/[email protected]_vsyllalxesco42bbuzcqgel7xq/node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

mingyuLi97 avatar Dec 06 '22 07:12 mingyuLi97

same error Module Error (from ./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vue-loader/dist/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

liuxiaofanRZ avatar Mar 09 '23 08:03 liuxiaofanRZ

i also meet this problem when i use vue3.x in webpack5.

xuhaopei avatar Mar 23 '23 07:03 xuhaopei