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
On fly.io with v2.6.0, Cannot find module '@prisma/client'
on build
#2248
Comments
I'm not familiar with Fly.io, is there a build step somewhere in the deployment? You need to do a |
Hi @mikecao, thanks. Yes, Fly.io uses a Dockerfile to build a VM (but not a Docker container). I use Umami's repo with its Dockerfile to build Umami on Fly, with just one line added to make it compatiblae ( Edit: So to be clear, the build step is virtually identical to the build described in the Umami's Dockerfile. |
In |
I edited
to
but unfortunately the problem persists. I read elsewhere that prisma can cause memory spikes, so I tried increasing the VM's RAM to 1024 from 512, but this didn't help either. |
Further info: My fly.io build process injects If I replace that entrypoint with |
Thanks to this comment, I switched to using the prebuilt postgres Umami container, and everything works fine now. Previously I had been pulling from Umami source and deploying that with a small modification in the Dockerfile, plus a |
Closed |
Describe the Bug
Deploying on fly.io after having upgraded from v2.5.0 to v2.6.0, the deploy crashes with
Cannot find module '@prisma/client'
Database
PostgreSQL
Relevant log output
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Fly.io
The text was updated successfully, but these errors were encountered: