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

Yarn list does not display all the parent dependencies/children dependencies #9036

Open
amanandhar01 opened this issue Feb 15, 2024 · 1 comment

Comments

@amanandhar01
Copy link

For example:

when running: yarn list, semver is missing in the dependency tree
yo@4.3.1
│ ├─ yeoman-doctor@^5.0.0
│ ├─ yeoman-environment@^3.5.1
│ └─ yosay@^2.0.2

when running: yarn list --pattern yeoman-doctor, yo is not displayed as the parent dependency for yeoman-doctor
yarn list v1.22.19
└─ yeoman-doctor@5.0.0

when running yarn list --pattern semver, yo is not displayed as the parent dependency for yeoman-doctor
yarn list v1.22.19
└─ yeoman-doctor@5.0.0
├─ global-agent@2.2.0
│ └─ semver@7.5.4
└─ semver@5.7.2

@kailin0512
Copy link

kailin0512 commented Feb 16, 2024

I faced the similar issue before and this seems to be the tree parsing bug comes from
https://github.com/yarnpkg/yarn/blob/master/src/package-hoister.js

Do we have some idea where & how should we make some changes and we can help to contribute and maybe a PR for a fix? @arcanis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants