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

webpack5关于vu3配置的坑 #25

Open
FanWalker opened this issue Sep 12, 2021 · 0 comments
Open

webpack5关于vu3配置的坑 #25

FanWalker opened this issue Sep 12, 2021 · 0 comments

Comments

@FanWalker
Copy link
Owner

1、使用的vue-loader要用16以上版本
2、即使用来16版本以上的vue-loader,也会出现报错;
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin
解决办法,引入VueLoaderPlugin

const VueLoaderPlugin = require('vue-loader').VueLoaderPlugin;
module.exports = {
    ......
    plugins: [
       ......
       new VueLoaderPlugin(),
    ],
}
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

1 participant