error

无法解析vue的报错
Module parse failed: Unexpected token (2:0)
You may need an appropriate loader to handle this file type.
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

resolution

原因是没有配置VueLoaderPlugin
解决办法如下

Logo

前往低代码交流专区

更多推荐