x)- [x] bug report -> please search issues before submitting
- [ ] feature request
x)- [x] update
v6 -> v7 update
before:
Angular CLI: 6.1.5
Node: 10.11.0
OS: linux x64
Angular: 6.1.6
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.7.5
@angular-devkit/build-angular 0.7.5
@angular-devkit/build-optimizer 0.7.5
@angular-devkit/build-webpack 0.7.5
@angular-devkit/core 0.7.5
@angular-devkit/schematics 0.7.5
@angular/cdk 6.4.7
@angular/cli 6.1.5
@angular/material 6.4.7
@ngtools/webpack 6.1.5
@schematics/angular 0.7.5
@schematics/update 0.7.5
rxjs 6.3.2
typescript 2.9.2
webpack 4.9.2
after:
Angular CLI: 7.0.0-rc.3
Node: 10.11.0
OS: linux x64
Angular: 7.0.0-rc.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.7.5
@angular-devkit/build-angular 0.7.5
@angular-devkit/build-optimizer 0.7.5
@angular-devkit/build-webpack 0.7.5
@angular-devkit/core 7.0.0-rc.3
@angular-devkit/schematics 7.0.0-rc.3
@angular/cdk 6.4.7
@angular/cli 7.0.0-rc.3
@angular/material 6.4.7
@ngtools/webpack 6.1.5
@schematics/angular 7.0.0-rc.3
@schematics/update 0.9.0-rc.3
rxjs 6.3.3
typescript 3.1.3
webpack 4.9.2
warning " > @angular/[email protected]" has incorrect peer dependency "@angular/core@>=6.0.0-beta.0 <7.0.0".
warning " > @angular/[email protected]" has incorrect peer dependency "@angular/common@>=6.0.0-beta.0 <7.0.0".
warning " > @angular/[email protected]" has incorrect peer dependency "@angular/core@>=6.0.0-beta.0 <7.0.0".
warning " > @angular/[email protected]" has incorrect peer dependency "@angular/common@>=6.0.0-beta.0 <7.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/compiler@>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/core@>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0".
warning "@angular-devkit/build-angular > @ngtools/[email protected]" has incorrect peer dependency "typescript@~2.4.0 || ~2.5.0 || ~2.6.0 || ~2.7.0 || ~2.8.0 || ~2.9.0".
Cannot read property 'parseJson' of undefined
The update of CLI and Core succeeds despite the red error, but build-angular is not updated to the correct version and Angular Material and the CDK are not update.
ng update succeeds
This didn't work for me in one of my projects: https://github.com/alfaproject/rs-progress/tree/v6
P.S.: It also didn't remove the reflect polyfill.
I saw this today as well with an ng update @angular/cli to 7.0.1. It did not update "@angular-devkit/build-angular": "^0.9.0", to "@angular-devkit/build-angular": "^0.10.1",.
This was also mentioned in https://github.com/angular/angular-cli/issues/12646#issuecomment-431317797.
@Splaktar this was due to a very specific underlying issue that manifested in the following output: Cannot read property 'parseJson' of undefined.
What you are experiencing is most likely this: https://github.com/angular/angular-cli/issues/12647
@clydin thank you for the clarification. I've moved some of the comments over to that issue.
It might be helpful to update the topic of this issue to ng update: Cannot read property 'parseJson' of undefined to avoid more people posting that they are seeing issues with build-angular.
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._