-
Notifications
You must be signed in to change notification settings - Fork 3k
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 randomly fails in a Docker container on Mac host #17951
Comments
I cannot reproduce on canary (v1.2.5). Please try upgrading or provide some more details. platform: files: // main1.ts
import "./main2.ts"; // main2.ts
console.log("hello"); I tried all of these commands, they all worked: bun main1.ts
bun ./main1.ts
bun run main1.ts
bun run ./main1.ts |
What hardware and distribution are you using? Are you in any kind of container or virtualization environment? |
I am in a Docker container on a new Mac;
If I use Bun from Brew (v1.1.40) on host everything works like normal. EDIT: brew doesn't have Bun, so I installed it manually some time ago. |
What version of Bun is running?
1.2.4
What platform is your computer?
Linux 6.8.0-47-generic aarch64 aarch64
What steps can reproduce the bug?
Bun v1.1 had this working but since I upgraded to 1.2, it's more unstable.
There are 2 bugs and the most simple, create a basic console.log file (main2.ts):
Run:
Error:
Also await import doesn't work, create main1.ts:
Running
bun main1.ts
orbun run ./main1.ts
raises the same error.But it seems to be random....?! Is it a caching issue?
What is the expected behavior?
It just work like Bun 1.1.x
What do you see instead?
Errors above
Additional information
Seems to be related to some cache, perhaps the TS files are cached somewhere?
The text was updated successfully, but these errors were encountered: