Open Elijjahh opened 1 week ago
I think this is a bug in Bun
I think this is a bug in Bun
Okay, then I'll create an issue at it's repo. Thanks)
Don't use Bun. Use Yarn instead.
same problem, stuck in "generating prisma client" when run "bunx nuxi@latest module add prisma"
Thanks for reporting the issue @Elijjahh.
same problem, stuck in "generating prisma client" when run "bunx nuxi@latest module add prisma"
Can you enable debug logging and give me the output?
Ran into the same problem with a fresh project using bun.
It logs nothing after 10 mins, escaping the process dont give anything either.
Manually running bunx prisma generate
seems to work just fine.
Can you enable debug logging and give me the output?
@ankur-arch here is the output:
P.S: When there will be an update for npm package? I see you merged some fixes at main branch but there is no release yet
P.S: When there will be an update for npm package? I see you merged some fixes at main branch but there is no release yet
Yep, I'll be releasing the fixes soon!
The problem
When I install @prisma/nuxt and start at dev mode everything works until "Generating Prisma client...". At this moment it just freezes and nothing happens
Steps to reproduce:
Add "@prisma/nuxt" to nuxt modules and run:
What I've noticed
There are some experiments that I've done. I've noticed that it works when there is no bun.lockb. So I tried installing packages and start dev mode with deleted bun.lockb and it worked.
Also if I add bunfig.toml:
then it also works.
Also after successful first time (using no bun.lockdb or bunfig.toml) it works anyway (with/without bun.lockdb). I am new to bun and prisma so I don't know the exact reason. I guess that "@prisma/nuxt" installs "@prisma/client" at first time and that breaks everything and at second time it is already installed so everything works. And it's very strange that bun.lockdb somehow affects runtime
Screenshots
Generation freezes. You can see that it started at 22:03 and I made a screenshot at 22:06:
Generation works good. Removed @prisma/nuxt from modules so it doesn't run at nuxt prepare. Then removed bun.lockdb and ran bun dev:
Generation works. Added bunfig.toml