ProgressPlugin breaks with webpack 4.25.* due to incorrect option colors
Bug Report or Feature Request (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [ ] new
- [*] build
- [*] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Repro steps
npm install npm run build / serve
The log given by the failure
Progress Plugin Invalid Options
options['colors'] is an invalid additional property options should pass "instanceof" keyword validation options should match exactly one schema in oneOf
ValidationError: Progress Plugin Invalid Options
options['colors'] is an invalid additional property options should pass "instanceof" keyword validation options should match exactly one schema in oneOf
Desired functionality
In common.ts#L147 the ProgressPlugin is called with parameter colors. This does not meet the schema which is validated ProgressPlugin.js#L90
Mention any other details that might be useful
ng update --alldid the work!
works like a charm
Can be fixed temporarily by adding this line to package.json
"devDependencies":{ ... "webpack": "4.24.0" }then
npm install
doesn't work for me os: OpenSuse Tumbleweed
ng update --alldid the work!
but this works fine!
Heya, we have a fix incoming in https://github.com/angular/angular-cli/pull/12870. As far as I can tell, this only affects 6.2.x. Neither 6.1.x nor 7.x should be affected.
I had the same issue on Ubuntu 18.10, Node 10.8.0, NPM 6.2.0 and Angular CLI 6.2.6.
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 }));
Hope this help. Cheers.
It works! Thanks a lot :)
Fixed in https://github.com/angular/angular-cli/releases/tag/v6.2.7
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 }));
This worked for me as well -- thanks!
Updating to Angular CLI 6.2.7 fixed it for me.
"webpack": "4.24.0"
Did the job also for me.
ng update --all did the work!
Worked for me as well.
"webpack": "4.24.0"
worked for me! =) Thanks!
I am facing same issue. None of the above solutions working for me . Any other suggestions ?
@angular/[email protected] alone didn't make it, had to upgrade one more:
"@angular-devkit/build-angular": "0.10.6",
"@angular/cli": "6.2.7",
Another workaround is ng serve --progress=false until you can update angular-cli
I am facing same issue. None of the above solutions working for me . Any other suggestions ? try do it :
npm uninstall webapck, then Can be fixed temporarily by adding this line to package.json
"devDependencies":{
...
"webpack": "4.24.0"
}
then
npm install
Got the error with "@angular/cli" 6.2.5 all the way to 6.2.8.
@iamwillpowell's fix worked for me.
Any idea about what is causing the issue? Should we expect a patch in the 6.x branch? I have some projects in production and I'd like to avoid workarounds
Same problem with me (Angular 6.1.10 and Angular Cli 6.2.7)
Remove package-lock.json and npm cache clean --force && npm install --force
Worked for me :)
update from
"@angular-devkit/build-angular": "0.8.4",
to
"@angular-devkit/build-angular": "0.11.0",
ng update @angular/cli worked for me
update from
"@angular-devkit/build-angular": "0.8.4",to
"@angular-devkit/build-angular": "0.11.0",
worked THANKS
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.