-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Bun@1.0.23+ install violates peer dependency constraints #8406
Comments
@Electroid or @Jarred-Sumner would be good to know if this issue is "accepted" or if it's ignored, I know you all are busy so timeline isn't necessary. I think more people from different communities are experiencing this issue now, and it prevents us from using newer Bun versions. |
@byCedric it's a bug, we will fix it (@dylan-conway, most likely) We have all been really busy working on Bun for Windows |
Awesome, thanks! Yeah, I didn't want to pressure you or anyone else. I just had to know if this was indeed qualified as bug or if it's blamed on something else 😄 Good luck with the Windows support, I know it has been rough. |
Duplicate of #9135 |
I meant to close the newer issue, not this one, but since it's done will track in #9135 |
Just to reiterate - this will be fixed and is being tracked in #9135. |
Thanks @Jarred-Sumner! Starting from I did a full test on all
|
What version of Bun is running?
1.0.23+83f2432da
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
Starting from
bun@1.0.23
,bun install
fails to install correct peer dependencies for at least 1 scenario.Steps to repro
$ git clone git@github.com:bycedric/expo-template.git ./test && cd ./test
$ bun install
$ bun expo start
or$ bun expo export --platform web
You can test this with
bun@1.0.23
andbun@1.0.22
, e.g. throughbrew
:$ brew install oven-sh/bun/bun@1.0.23
❌ fails$ brew install oven-sh/bun/bun@1.0.22
✅ succeedsContext
This happens when you create a project with
expo-router@~3.4.0
andeslint@^8.56.0
. But, the issue itself is related toajv-keywords
having a peer dependency toajv@8
, whileajv@6
is installed. Here is the dependency graph and the installed node_modules structure:As you can see, the installed modules is not correct, as
ajv-keywords -> ajv
will resolve toajv@6
, notajv@8
. You can validate by running this in the terminal:bun@1.0.22
, you'll see8.12.0
bun@1.0.23
, you'll see6.12.6
What is the expected behavior?
Bun should install dependencies properly so that
ajv-keywords@5.1.0
can resolve toajv@8
(and notajv@6
).$ bun expo start
should work fine.What do you see instead?
Full screenshot
Additional information
You can also test with
yarn why ajv
andyarn why ajv-keywords
. For that, runbun install --yarn && yarn why ajv
.The text was updated successfully, but these errors were encountered: