ValidationError: Progress Plugin Invalid Options

Viewed 14943

error while running angular cliWhen I run my project from angular cli. it shows me this error. (image attached).

I have updated my node_module files and search around many other platforms but...

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]
3 Answers

This happened to me due to mismatch of the webpack and angular cli versions on my machine. Try to downgrade webpack to version "4.24.0" for your project. Easiest way to do so is to add specific version of webpack as dev-dependency in package.json:

devDependencies": {
    ...
    "webpack": "4.24.0",
    ...
}

This error shows up when @angular-devkit/build-angular is old version (in my case it was 0.8.0), I upgraded it to a newer version 0.13.7 and it worked. And to avoid continuous issues while builing your application please makesure that webpack version is >=4.29

Fixed it with removing colors option on this file: /node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js on Line: 123

Changed this:

extraPlugins.push(new ProgressPlugin({ profile: buildOptions.verbose, colors: true }));

to:

extraPlugins.push(new ProgressPlugin({ profile: buildOptions.verbose }));
Related