-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
bunx vitest
hangs
#9170
Comments
The root cause here is a specific issue with Vitest and Bun, would you be able to share any code so we can reproduce? |
bunx vitest
hangs
Hi @Electroid! I actually included a simple method of reproducing it with a few commands in the comment above. |
Duplicate of #4145 |
We will fix this, didn't see that we had an open issue for this already. |
For now, it is recommended to use |
@paperdave Also the reason I opened this issue wasn't for the same reason as #4145. My issue is that in a variety of scenarios |
Unfortunately, we do not have a catch-all ability to fix all scenarios where Bun hangs. If you do encounter something where Bun hangs, please report it in a seperate issue with some code so we can reproduce it. |
What version of Bun is running?
1.0.28+705638470
What platform is your computer?
Linux 6.1.79 x86_64 unknown
What steps can reproduce the bug?
In this scenario I'm using
nix-shell
, but this happens in other environments as well.Minimum reproducible example
mkdir temp touch temp/example.spec.ts (cd temp && bunx vitest)
What is the expected behavior?
Bun should at the very least complain in some way and ideally inform me that installing NodeJS will likely resolve the problem.
What do you see instead?
Bun just hangs silently.

Additional information
I've hit this multiple times and I'm just used to assuming this is what's wrong.
However to developers that are new to bun this is an incredibly confusing scenario and most people wouldn't expect installing NodeJS to be the answer given Buns whole thing is to be a drop-in replacement even if its not 100% there yet.
The text was updated successfully, but these errors were encountered: