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

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

Open
baoliwei opened this issue Aug 19, 2020 · 10 comments
Open

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

baoliwei opened this issue Aug 19, 2020 · 10 comments

Comments

@baoliwei
Copy link

No description provided.

@SunShinewyf
Copy link

any solutions?

@SunShinewyf
Copy link

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

@Reda011
Copy link

Reda011 commented Sep 27, 2021

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",

@liuwei2016
Copy link

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.

@JUST-Limbo
Copy link

JUST-Limbo commented Mar 17, 2022

此插件 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
.....

@Wzb3422
Copy link

Wzb3422 commented Apr 8, 2022

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

@ekxs0109
Copy link

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.

@mingyuLi97
Copy link

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.

@liuxiaofanRZ
Copy link

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.

@xuhaopei
Copy link

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

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

10 participants