"webpack": "^5.69.1",
"webpack-cli": "^4.9.2"
"vue-loader": "^15.9.8"
const VueLoaderPlugin = require('vue-loader/lib/plugin')
可以参考
"webpack-cli": "^4.9.2"
"vue-loader": "^15.9.8"
const VueLoaderPlugin = require('vue-loader/lib/plugin')
可以参考
2022-03-03
npm run build:js
报错:
[webpack-cli] Failed to load 'C:\Users\Administrator\Desktop\mooc\2-1.demo\webpack.components.js' config
[webpack-cli] TypeError: VueLoaderPlugin is not a constructor
vue-loader 版本过高
我的版本
"vue-loader": "^15.9.8",
"webpack-cli": "^4.9.2"
报错:
[webpack-cli] Failed to load 'C:\Users\Administrator\Desktop\mooc\2-1.demo\webpack.components.js' config
[webpack-cli] TypeError: VueLoaderPlugin is not a constructor
vue-loader 版本过高
我的版本
"vue-loader": "^15.9.8",
"webpack-cli": "^4.9.2"
2022-03-02
运行npm run build:js 命令后报错 Error: Cannot find module 'vue/compiler-sfc';
发现vue-loader版本是17.0.0
解决办法:降低vue-loader版本为15.0.0,重新执行打包命令
发现vue-loader版本是17.0.0
解决办法:降低vue-loader版本为15.0.0,重新执行打包命令
2022-02-14
npm i sass-loder@5 -D
npm ERR! 404 Not Found - GET https://registry.npmjs.com/sass-loder - Not found
npm ERR! 404 'sass-loder@5' is not in the npm registry.
npm ERR! 404 Not Found - GET https://registry.npmjs.com/sass-loder - Not found
npm ERR! 404 'sass-loder@5' is not in the npm registry.
2022-01-20