Angular ValidationError:进度插件选项无效
当我从angular cli运行项目时。它向我显示了这个错误。(附图) 我已经更新了我的node_模块文件并搜索了许多其他平台,但是Angular ValidationError:进度插件选项无效,angular,command-line-interface,angular-ui-bootstrap,Angular,Command Line Interface,Angular Ui Bootstrap,当我从angular cli运行项目时。它向我显示了这个错误。(附图) 我已经更新了我的node_模块文件并搜索了许多其他平台,但是 options should NOT have additional properties options should pass "instanceof" keyword validation options should match exactly one schema in oneOf ValidationError: Progress Plugin In
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 pass "instanceof" keyword validation
options should match exactly one schema in oneOf[![enter image description here][1]][1]
使用此文件上的“删除颜色”选项修复了此问题: /node_modules/@angular devkit/build angular/src/angular cli files/models/webpack configs/common.js 在线:123 更改为:
extraPlugins.push(new ProgressPlugin({ profile: buildOptions.verbose, colors: true }));
致:
这种情况发生在我身上是因为我的机器上的webpack和angular cli版本不匹配。尝试将项目的webpack降级为版本“4.24.0”。最简单的方法是在package.json中添加特定版本的webpack作为dev依赖项:
devDependencies": {
...
"webpack": "4.24.0",
...
}
这解决了我的问题,或者至少让我看到另一条错误消息:)
devDependencies": {
...
"webpack": "4.24.0",
...
}