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 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 at validateOptions (E:\前端\demo-cart\node_modules\webpack\node_modules\schema-utils\src\validateOptions.js:32:11) at new ProgressPlugin (E:\前端\demo-cart\node_modules\webpack\lib\ProgressPlugin.js:62:3) at new Progress (E:\前端\demo-cart\node_modules\progress-webpack-plugin\index.js:25:21) at new progressPlugin (E:\前端\demo-cart\node_modules\progress-webpack-plugin\index.js:127:10) at E:\前端\demo-cart\node_modules\webpack-chain\src\Plugin.js:14:18 at module.exports.toConfig (E:\前端\demo-cart\node_modules\webpack-chain\src\Plugin.js:78:22) at E:\前端\demo-cart\node_modules\webpack-chain\src\Config.js:129:63 at Array.map (<anonymous>) at module.exports.toConfig (E:\前端\demo-cart\node_modules\webpack-chain\src\Config.js:129:40) at Service.resolveWebpackConfig (E:\前端\demo-cart\node_modules\@vue\cli-service\lib\Service.js:277:34)
时间: 2023-06-30 21:15:20 浏览: 3658
这个错误提示是由 Webpack 插件中的 ProgressPlugin 引起的。它表明该插件的选项配置存在问题。具体来说,错误提示了选项配置中有额外的属性,不符合预期的模式,并且无法通过 "instanceof" 关键字验证。此外,该插件的选项配置也不符合预期模式中的任何一个。如果您需要更多的帮助,请提供更多上下文或代码片段。
相关问题
ValidationError: webpack Dev Server Invalid Options options should NOT have additional properties options should NOT have additional properties ValidationError: webpack Dev Server Invalid Options options should NOT have additional properties options should NOT have additional properties
这个错误是Webpack Dev Server报出来的,意思是Webpack Dev Server的配置选项中有一些不合法的属性。具体而言,它指出这些选项中包含了一些多余的属性,不符合规定。
解决这个问题的方法就是检查Webpack Dev Server的配置选项,确保其中不包含任何多余的属性。可能需要查看Webpack Dev Server的文档来确定哪些属性是有效的。如果你无法确定哪些属性是多余的,可以尝试逐一排除选项,直到找到引发错误的那个选项。
ValidationError: webpack Dev Server Invalid Options options should NOT have additional properties
这个错误通常是由于 webpack dev server 的配置出现了问题所致。可能是你在配置文件中添加了不支持的属性,或者是你的配置文件存在语法错误。
你可以检查一下你的 webpack dev server 配置文件,看看是否有添加了不支持的属性。另外,你也可以尝试使用一个基本的配置文件,然后逐步添加你需要的配置项,以查找问题所在。
如果你使用的是 [email protected] 版本,你可以尝试升级到最新版本,因为一些旧版本的 webpack-dev-server 存在一些已知的 bug。
阅读全文
相关推荐














