webpack配置报错vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPl

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

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

在终端报错显示vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

webpack配置报错vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPl

原因是因为默认vue-loader版本过高,在14.x版本后不支持语法,所以需要去package.json内将vue-loader的版本降低到14.x以下,所以我改成13.0.0就可以了(^13.0.0代表会从13版本开始查询相应版本,但不会查询到14版本)
webpack配置报错vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPl

改成:
webpack配置报错vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPl

然后需要重新下载配置node_modules文件
webpack配置报错vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPl

然后就可以啦,自己做个小记录