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

我们在main.js 中个导入 vue 文件 : 

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

在 配置文件 中 ,配置处理规则 

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

配合结束以后 运行 npm run dev ,发现报错了,报的错就是:

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

  • 参考官方文档 https://vue-loader.vuejs.org/migrating.html#a-plugin-is-now-required
  •  Vue-loader在15.*之后的版本都是 vue-loader的使用都是需要伴生 VueLoaderPlugin的,

所以 还需配置:

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

这样就能完美解决 这个问题