npm run build 報錯,這個有源碼下載嗎?
npm run build 報錯,這個有源碼下載嗎?
ERROR in ./src/app.vue
Module Error (from ./node_modules/vue-loader/lib/index.js):
[vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options.
?@ ./src/index.js 2:0-27 6:21-24
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 6:21-24
ERROR in ./src/app.vue
Module build failed (from ./node_modules/vue-loader/lib/index.js):
TypeError: Cannot read property 'parseComponent' of undefined
??? at parse (D:\vscode\vuetest\node_modules\@vue\component-compiler-utils\dist\parse.js:14:23)
??? at Object.module.exports (D:\vscode\vuetest\node_modules\vue-loader\lib\index.js:67:22)
?@ ./src/index.js 2:0-27 6:21-24
2019-08-22
我的是app.vue里的樣式報錯? 你把style里的樣式先刪了試試
2019-08-21
webpack.config.js 加入?
const VueLoaderPlugin = require('vue-loader/lib/plugin');
plugins:[
new VueLoaderPlugin()
]
2019-08-19
你的包依賴沒有安裝好,插件也沒裝好,你可以參考一下我的代碼
https://github.com/carrieguo/vue.js-todolist
2019-08-19
解決了嗎 遇到了一樣的問題,我要放棄了