Skip to content

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

Closed

Description

@fkolar

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

Activity

  1. zhaparoff commented on Sep 2, 2019

    @zhaparoff

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

  2. transferred this issue fromangular/componentson Sep 6, 2019
  3. alan-agius4 commented on Sep 6, 2019

    @alan-agius4
    Collaborator

    Duplicate of #14980

  4. ernie58 commented on Sep 10, 2019

    @ernie58

    @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.

  5. angular-automatic-lock-bot commented on Oct 11, 2019

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions