ERROR in ./src/vue/App.vue
Module Error (from ./node_modules/vue-loader/lib/index.js):
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
@ ./src/main.js 9:11-35
ERROR in ./src/vue/App.vue?vue&type=style&index=0&id=5e019a2f&scoped=true&lang=css& 20:0
Module parse failed: Unexpected token (20:0)
File was processed with these loaders:
* ./node_modules/vue-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
在webpack.config.js中,配置插件
const VueLoaderPlugin = require('vue-loader/lib/plugin');
plugins: [
new VueLoaderPlugin(),
],
网友评论