Nuxt 3 - Prisma building production
Hi Guys, it seems like I am havcing issues with my Prisma sections of my system working once i build and run my application. Just wondering if there is another step I am missing as it works fine when doing it on my dev server using pnpm run dev.
Thanks in advance
15 Replies
This is what I get, I am running this in a docker container, should I have to make a change to the build process to include prisma schema?
I have since fixed the initialisation but now it seems any prisma calls are crashing my bun instance
Hey @roobr 👋
I see a similar issue reported here in Bun repository:
https://github.com/oven-sh/bun/issues/10457
Could you try using Bun v1.0.18 and check if you get the same error?
GitHub
postinstall script from "@prisma/engines" terminated by SIGILL (Ill...
How can we reproduce the crash? Run bun install on project with Next and Prisma in Linux environment Host kernel: 5.15.0-105-generic Docker: 26.1.0 Relevant log output 0.757 bun install v1.1.5 (ab7...
I did try to update bun but not sure if I need to force it in my docker container?
My container is as follows
Thank you for your suggestion
I saw here that using 1.0.18 bun version can be a temporary workaround
https://github.com/oven-sh/bun/issues/8519#issuecomment-1930711713
GitHub
Error "SIGSEGV (Address boundary error)" in docker with prisma · Is...
What version of Bun is running? version 1.0.26+7492b3a20 and lower What platform is your computer? Linux 6.7.0-0-MANJARO x86_64 unknown. alpine in docker What steps can reproduce the bug? I tried t...
Do you know how to force this?
You can specify the specific version of bun in your dockerfile like this
Unfortunately still crashes
actually seems like bun is still the old version there
I have it running on 1.0.18 but now it doesnt panic it just does
frontend-1 exited with code 0
Definitely a bun related issue, reverted to pnpm and works fineI would recommend creating an issue in Bun repository 🙏
Also, thanks for taking the time to get back and confirming that the issue was related to Bun 😄
I have created one, see https://github.com/oven-sh/bun/issues/11390
GitHub
Nuxt 3, Prisma · Issue #11390 · oven-sh/bun
How can we reproduce the crash? Dockerised Nuxt 3 Application seems to crash with prisma query JavaScript/TypeScript code that reproduces the crash? No response Relevant log output frontend-1 | Bun...
I'm the same, have you solved it?
You shouldn't use the alpine version of Bun version until this is resolved.
https://github.com/oven-sh/bun/issues/11390#issuecomment-2152042510
GitHub
Nuxt 3, Prisma · Issue #11390 · oven-sh/bun
How can we reproduce the crash? Dockerised Nuxt 3 Application seems to crash with prisma query JavaScript/TypeScript code that reproduces the crash? No response Relevant log output frontend-1 | Bun...
When can it be repaired? Does not support Linux Docker?
This is a dependency from Bun.
I would recommend subscribing to this issue to know when this will be fixed:
https://github.com/oven-sh/bun/issues/918
GitHub
Musl LibC Support · Issue #918 · oven-sh/bun
What is the problem this feature will solve? It will allow bun to be used in linux distributions such as Alpine Linux or BunOS. This could also potentially solve #255. What is the feature you are p...
Has it not been resolved since 2022? So it seems that it may not be possible to fix it this year, right
Chances are pretty low.