Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng update tries to install 9.0.0-next.4 #15536

Closed
fkolar opened this issue Aug 31, 2019 · 4 comments
Closed

ng update tries to install 9.0.0-next.4 #15536

fkolar opened this issue Aug 31, 2019 · 4 comments

Comments

@fkolar
Copy link

fkolar commented Aug 31, 2019

I am having existing angular application based on 7 adn I just run

ng update @angular/cli@8 @angular/core@8 --force and all seems to be now updated. But when I try to update material with
ng update @angular/material@8 or ng update @angular/material it tries to update existing angular packages I just updated to version angular/components#8 to version 9

ng update @angular/material@8
Using package manager: 'npm'
Collecting installed dependencies...
Found 62 dependencies.
Fetching dependency metadata from registry...
        Updating package.json with dependency @angular/material @ "8.1.4" (was "7.3.7")...
    Updating package.json with dependency @angular/compiler-cli @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/language-service @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/animations @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/compiler @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/core @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/common @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/cdk @ "8.1.4" (was "7.3.7")...
    Updating package.json with dependency @angular/platform-browser @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/platform-browser-dynamic @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/router @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency @angular/forms @ "9.0.0-next.4" (was "8.2.4")...
    Updating package.json with dependency zone.js @ "0.10.2" (was "0.9.1")...

Expected Behavior

What behavior were you expecting to see?
I expect that it will only tries to update to version 8 and dont touch existing angular packages.

Actual Behavior

What behavior did you actually see?

see above the output

Environment

Angular CLI: 8.3.2
Node: 11.0.0
OS: darwin x64
Angular: 8.2.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.803.2
@angular-devkit/build-angular      0.803.2
@angular-devkit/build-ng-packagr   0.803.2
@angular-devkit/build-optimizer    0.803.2
@angular-devkit/build-webpack      0.803.2
@angular-devkit/core               8.3.2
@angular-devkit/schematics         8.3.2
@angular/cdk                       7.3.7
@angular/cli                       8.3.2
@angular/material                  7.3.7
@ngtools/webpack                   8.3.2
@schematics/angular                8.3.2
@schematics/update                 0.803.2
ng-packagr                         5.5.0
rxjs                               6.5.2
typescript                         3.5.3
webpack                            4.39.2
@zhaparoff
Copy link

Most likely, it is related to the angular-cli itself, and not to material components: #14980

@jelbourn jelbourn transferred this issue from angular/components Sep 6, 2019
@alan-agius4
Copy link
Collaborator

Duplicate of #14980

@alan-agius4 alan-agius4 marked this as a duplicate of #14980 Sep 6, 2019
@ernie58
Copy link

ernie58 commented Sep 10, 2019

@alan-agius4 Any ETA on #14980 ?

It's been 2 months since the bug was reported, and it prevents us from updating our code base.
We don't want to update the dependencies manually, since we're afraid to break something if we skip the upgrade process with the schematics.

Since the other ticket is locked, we have no idea when there will be a solution, or if anyone is actively working on this.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants