0
点赞
收藏
分享

微信扫一扫

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

如果你安装完 vue-loader vue-template-compiler 执行 npm run dev 时报错如下:

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.

有可能是版本问题。

解决方法:

首先安装:

cnpm i vue-loader vue-template-compiler -D

再去webpack.config.js中做相应的配置:

const VueLoaderPlugin = require('vue-loader/lib/plugin')

 

举报

相关推荐

0 条评论