美文网首页
vue-loader报错处理

vue-loader报错处理

作者: Jey | 来源:发表于2020-08-26 17:22 被阅读0次
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(),
  ],

相关文章

网友评论

      本文标题:vue-loader报错处理

      本文链接:https://www.haomeiwen.com/subject/vddfsktx.html