版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sunhaobo1996/article/details/80431737
在配置Vue+Webpack环境的时候出现了如下错误:
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
知道缺VueLoaderPlugin,但不知道在哪个库里。百度很久,无果。
在github vue-loader“偶然”上找到了解决方案:
解决方法如下:
const { VueLoaderPlugin } = require('vue-loader');
……
plugins: [
new VueLoaderPlugin(),
],
问题解决。