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

Transitive/nested dependencies' asterisk (*) version doesn't respect project's specified version or override config #5022

Closed
dulguun0225 opened this issue Sep 12, 2023 · 6 comments
Assignees
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client

Comments

@dulguun0225
Copy link

dulguun0225 commented Sep 12, 2023

What version of Bun is running?

1.0.0

What platform is your computer?

Linux 6.4.12-arch1-1 x86_64 unknown

How to reproduce

Run bun install inside this project

Explanation

  • This project has "@types/react": "^16.9.56" depdendency.
  • But its dependency @types/react-transition-group has "@types/react" : "*" that resolves to latest version 18.
    These two different versions of @types/react conflict and cause type errors.

What is the expected behavior?

  1. overrides configuration should override nested/transitive dependencies' * versions.
  2. Preferably any project dependency should override nested/transitive dependencies' * version (overrides config should be unnecessary). Maybe it only makes sense for types only dependencies.

What do you see instead?

Nested/transitive dependencies' * version overrides project dependencies' versions. Even overrides config doesn't work.

Additional information

No response

@dulguun0225 dulguun0225 added the bug Something isn't working label Sep 12, 2023
@dulguun0225 dulguun0225 changed the title Transitive/nested dependencies' asterisk (*) version doesn't respect projects specified version. Transitive/nested dependencies' asterisk (*) version doesn't respect project's specified version or override config Sep 12, 2023
@MikeDombo
Copy link

Same as #4946

@Zikoat
Copy link

Zikoat commented Sep 14, 2023

Overrides support is being tracked in #1134

@Zikoat
Copy link

Zikoat commented Sep 14, 2023

Possible duplicate: #4642

@dulguun0225
Copy link
Author

dulguun0225 commented Sep 14, 2023

Overrides support is being tracked in #1134

overrides config seems to work if transitive dependency version isn't *

@Jarred-Sumner
Copy link
Collaborator

@dylan-conway can you check if this is still an issue?

@Jarred-Sumner Jarred-Sumner added the bun install Something that relates to the npm-compatible client label Sep 2, 2024
@dylan-conway
Copy link
Member

Fixed in bun v1.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client
Projects
None yet
Development

No branches or pull requests

5 participants