安装less报错ERROR ValidationError: Progress Plugin Invalid Options options should NOT have add

ERROR  ValidationError: Progress Plugin Invalid Options

        options should NOT have additional properties
        options should NOT have additional properties
        options should NOT have additional properties
        options should pass "instanceof" keyword validation
        options should match exactly one schema in oneOf 

原因是less-loader的版本过低指向webpack4, webpack4引起与vue-cli5不一致的情况。

解决办法

npm install -g yarn
yarn install

PS D:\项目33 立尖产品系统\Demo> npm run serve > [email protected] serve > vue-cli-service serve INFO Starting development server... ERROR ValidationError: Progress Plugin Invalid Options ValidationError: Progress Plugin Invalid Options options should NOT have additional properties options should NOT have additional properties options should pass "instanceof" keyword validation options should match exactly one schema in oneOf at validateOptions (D:\项目33 立尖产品系统\Demo\node_modules\webpack\node_modules\schema-utils\src\validateOptions.js:32:11) at new ProgressPlugin (D:\项目33 立尖产品系统\Demo\node_modules\webpack\lib\ProgressPlugin.js:62:3) at new Progress (D:\项目33 立尖产品系统\Demo\node_modules\progress-webpack-plugin\index.js:25:21) at D:\项目33 立尖产品系统\Demo\node_modules\webpack-chain\src\Plugin.js:14:18 at module.exports.toConfig (D:\项目33 立尖产品系统\Demo\node_modules\webpack-chain\src\Plugin.js:78:22) at D:\项目33 立尖产品系统\Demo\node_modules\webpack-chain\src\Config.js:129:63 at Array.map (<anonymous>) at module.exports.toConfig (D:\项目33 立尖产品系统\Demo\node_modules\webpack-chain\src\Config.js:129:40) 7:34) at PluginAPI.resolveWebpackConfig (D:\项目33 立尖产品系统\Demo\node_modules\@vue\cli-service\lib\PluginAPI.js:132:25) at serve (D:\项目33 立尖产品系统\Demo\node_modules\@vue\cli-service\lib\commands\serve.js:79:31) at Service.run (D:\项目33 立尖产品系统\Demo\node_modules\@vue\cli-service\lib\Service.js:262:12) at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
最新发布
07-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

何时复西归

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值