Open Tanavya opened 5 days ago
Okay just figured this out, downgrading to version bun version 1.1.0 works! But this is very weird and needs to be investigated soon! Thanks
Investigating further it seems something broke after version 1.1.13 since version 1.1.13 works but version 1.1.14 doesn't
I noticed a different use case in which my scripts don't exit even in older versions! This is really preventing me from using bun in our application, so it would be great if we get an update soon.
I cannot reproduce this error...I just tried bun 1.1.17 on one of my projects with prisma and it works fine for me...
Do you run bun install to ensure bun and not npm installed prisma? What does you package.json look like? Does your database build fine with npx prisma generate
?
@Tanavya what database is it using? We have integration tests for postgres and sqlite, but I don't think we have integration tests for Prisma's mongodb or mysql adapters
I am using postgres for my own application which wasn't working, but even with the guide here (using sqlite) it doesn't work https://bun.sh/guides/ecosystem/prisma Here is a video of me performing all the steps
https://github.com/oven-sh/bun/assets/17531555/1297aef4-686b-4ce1-b1f0-811fdf8f4981
What version of Bun is running?
1.1.17
What platform is your computer?
Darwin 23.1.0 arm64 arm
What steps can reproduce the bug?
I literally just followed this guide. However, when I run
bun run index.ts
it doesn't exit! I noticed this on a different system as well, and on a different project where I am running prisma commands. If I do the same setup but withts-node
ortsx
then it exits. Or if I addprocess.exit(0)
at the end. https://bun.sh/guides/ecosystem/prismaBasically this is my
index.ts
What is the expected behavior?
It should exit gracefully without having to call
process.exit(0)
.What do you see instead?
No response
Additional information
No response