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

默认,webpack无法打包.vue文件,需要安装 相关的loader:

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

提示以下错误信息:
Module Error (from ./node_modules/_vue-loader@15.7.2@vue-loader/lib/index.js):
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

解决办法:
参考博客:https://blog.csdn.net/cominglately/article/details/80555210
完美解决

posted on 2019-11-19 23:28  songsong_p_blue  阅读(426)  评论(0编辑  收藏  举报