亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

ERROR in ./src/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/index.js 2:0-27 8:18-21 ERROR in ./src/app.vue?

我配置的時候報錯好多?

正在回答

5 回答

vue-loader 查閱文檔發現v15版的vue-loader配置需要加個VueLoaderPlugin
const?VueLoaderPlugin?=require('vueloader/lib/plugin');


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

非常感謝,我也遇到同樣的問題,我重裝了vue-loader的版本15.7.0,然后按照你的方法修改之后build成功了。

0 回復 有任何疑惑可以回復我~
const?path?=?require('path');
const?VueLoaderPlugin?=require('vue-loader/lib/plugin');
module.exports?=?{???
?????entry?:?path.join(__dirname,?'src/index.js'),//__dirname?當前文件所在的目錄地址??
?????output:?{?????
????????filename:?'bundle.js',?????
????????path:?path.join(__dirname,'dist')???
?????????},?
?????module:?{??????
???????rules:?[?]
???????},??????
?????plugins:?[?new?VueLoaderPlugin()?],
?????mode:?'development'
?}

這是我的配置,上面的問題這樣就可以解決了,還有一些rules里面的配置 ,本節課學習完就可以解決了

1 回復 有任何疑惑可以回復我~
const?VueLoaderPlugin?=?require('vue-loader/lib/plugin');
...

??plugins:?[

????new?VueLoaderPlugin(),

??],


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

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

百度一下

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

舉報

0/150
提交
取消

ERROR in ./src/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/index.js 2:0-27 8:18-21 ERROR in ./src/app.vue?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號