Skip to content

ng update seems to confuse material and cdk #29658

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

Closed
1 task done
karptonite opened this issue Feb 17, 2025 · 1 comment
Closed
1 task done

ng update seems to confuse material and cdk #29658

karptonite opened this issue Feb 17, 2025 · 1 comment

Comments

@karptonite
Copy link

Command

update

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

Not sure

Description

ng update is reporting that @angular/material is outdated. We don't have @angular/material installed, only @angular/cdk.

git/geekui2 git:(main) ✗ ng update
Using package manager: yarn
Collecting installed dependencies...
Found 102 dependencies.
    We analyzed your package.json, there are some packages to update:
      Name                                    Version                  Command to update
     -------------------------------------------------------------------------------------
      @angular/material                       19.1.1 -> 19.1.4         ng update @angular/material

    There might be additional packages which don't provide 'ng update' capabilities that are outdated.
    You can update the additional packages by running the update command of your package manager.

> git/geekui2 git:(main) ✗ yarn outdated

Compare to:

yarn outdated v1.22.22
info Color legend :
Package                          Current  Wanted  Latest  Package Type    URL
@angular/cdk                     19.1.1   19.1.4  19.1.4  dependencies    https://github.com/angular/components#readme
@types/jasmine                   5.1.5    5.1.6   5.1.6   devDependencies https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine

Minimal Reproduction

Presumably, install an older version of @angular/cdk.

Exception or Error


Your Environment

Angular CLI: 19.1.7
Node: 18.20.5
Package Manager: yarn 1.22.22
OS: darwin arm64

Angular: 19.1.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1901.7
@angular-devkit/build-angular   19.1.7
@angular-devkit/core            19.1.7
@angular-devkit/schematics      19.1.7
@angular/cdk                    19.1.1
@angular/cli                    19.1.7
@schematics/angular             19.1.7
rxjs                            7.8.1
typescript                      5.7.3
zone.js                         0.15.0

Anything else relevant?

No response

@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 Mar 20, 2025
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

2 participants