问题解决24:webpack中使用构建vue项目报错vue-loader was used without the corresponding plugin. Make sure to include

问题:在webpack中使用vue报错:

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

问题解决24:webpack中使用构建vue项目报错vue-loader was used without the corresponding plugin. Make sure to include_第1张图片

解决:

我当前使用的Vue-loader版本是: “vue-loader”: “^15.7.0”,

官方在vue-loader15以上必须要配合插件使用

在webpack.config.js中配置:

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

问题解决24:webpack中使用构建vue项目报错vue-loader was used without the corresponding plugin. Make sure to include_第2张图片

问题解决24:webpack中使用构建vue项目报错vue-loader was used without the corresponding plugin. Make sure to include_第3张图片

就能解决问题.

前提:安装命令

npm i vue-loader vue-template-compiler -D

你可能感兴趣的:(问题解决方案)