为了账号安全,请及时绑定邮箱和手机立即绑定

配置了vue-loader,运行npm run dev总是报错?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.

module: {rules: [{test: /\.vue$/,use: 'vue-loader'},{test: /\.css$/,use: ['style-loader','css-loader']},{test: /\.jsx$/,use: 'babel-loader'},{test: /\.(png|jpg|jpeg|gif|svg)$/,use: [{loader: 'url-loader',options: {limit: 1024,name: '[name]-aaa.[ext]'}}]}]},


正在回答

3 回答


在webpack配置文件里写上http://img1.sycdn.imooc.com//5da825b80001cd0e08710647.jpg

0 回复 有任何疑惑可以回复我~

请问你是怎么解决这个问题的呀?


0 回复 有任何疑惑可以回复我~
#1

qq_慕雪1012427

const { VueLoaderPlugin } = require('vue-loader') plugins:[ new VueLoaderPlugin() ],
2019-08-19 回复 有任何疑惑可以回复我~
 VueLoaderPlugin

插件没引

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

配置了vue-loader,运行npm run dev总是报错?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.

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信