bun install
version resolution
#1029
Unanswered
schaefermichael
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've tried using
bun install
in a larger frontend project and ran into an issue with d3.Using the following example (bun 0.17.0):
d3-time
gets resolved to3.0.0
@types/d3
gets resolved to2.1.1
This causes errors because the type definition is not consistent with the actual package. In my real-world project I even get 1.1.1 of @types/d3-time despite the same dependencies in the lockfile.
Looking at the (yarn-compatible) lockfile from the example above, there are the following dependencies to d3-time:
d3@^7.6.1
->d3-time "3"
d3-scale@4
->d3-time "2.1.1 - 3"
d3-time-format@4
->d3-time "1 - 3"
"@types/d3@^7.4.0"
->"@types/d3-time" "*"
"@types/d3-scale@*"
->"@types/d3-time" "*"
Why is @types/d3 not being resolved to 3.0.0?
NPM resolves it as intented
Beta Was this translation helpful? Give feedback.
All reactions