-
Notifications
You must be signed in to change notification settings - Fork 12k
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
doesn't work with Yarn PnP
#26505
Labels
area: angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
ng update DX
severity3: broken
type: bug/fix
Comments
dominicbachmann
added a commit
to dominicbachmann/angular-cli
that referenced
this issue
Dec 17, 2023
Extend findPackageJson function to also work when using Yarn PnP Fixes angular#26505
13 tasks
dominicbachmann
added a commit
to dominicbachmann/angular-cli
that referenced
this issue
Dec 17, 2023
Extend findPackageJson function to also work when using Yarn PnP Fixes angular#26505
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
ng update DX
severity3: broken
type: bug/fix
Command
update
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When running
ng update <library>
in a project that uses Yarn PnP, the command fails with the following errorPackage '@angular/material' is not a dependency.
This was reported in the PnP support status thread and a work around listed here #16980 (comment)
The workaround requires temporarily disabling PnP, running the update, and then re-enabling PnP, which is not a great experience.
Minimal Reproduction
Run
ng update @angular/core
in a project that's set up with Yarn pnp.Exception or Error
Your Environment
Anything else relevant?
I believe the code responsible for this issue is this utils function that gathers all dependencies from the project's package.
https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/package-tree.ts#L53-L86
The text was updated successfully, but these errors were encountered: