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?
我配置的時(shí)候報(bào)錯(cuò)好多?
2021-01-29
vue-loader 查閱文檔發(fā)現(xiàn)v15版的vue-loader配置需要加個(gè)VueLoaderPlugin
const?VueLoaderPlugin?=require('vueloader/lib/plugin');2020-06-26
非常感謝,我也遇到同樣的問(wèn)題,我重裝了vue-loader的版本15.7.0,然后按照你的方法修改之后build成功了。
2020-04-23
const?path?=?require('path'); const?VueLoaderPlugin?=require('vue-loader/lib/plugin'); module.exports?=?{??? ?????entry?:?path.join(__dirname,?'src/index.js'),//__dirname?當(dāng)前文件所在的目錄地址?? ?????output:?{????? ????????filename:?'bundle.js',????? ????????path:?path.join(__dirname,'dist')??? ?????????},? ?????module:?{?????? ???????rules:?[?] ???????},?????? ?????plugins:?[?new?VueLoaderPlugin()?], ?????mode:?'development' ?}這是我的配置,上面的問(wèn)題這樣就可以解決了,還有一些rules里面的配置 ,本節(jié)課學(xué)習(xí)完就可以解決了
2020-03-26
const?VueLoaderPlugin?=?require('vue-loader/lib/plugin'); ...??plugins:?[
????new?VueLoaderPlugin(),
??],
2020-03-08
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config
百度一下