Open jesserizzo opened 1 year ago
Have you tried to run bun run prisma generate
after bun install
?
I'm not sure about Node.js app, but in my case - a next.js app, running bun run prisma generate
after bun install
and the errors gone.
Have you tried to run
bun run prisma generate
afterbun install
? I'm not sure about Node.js app, but in my case - a next.js app, runningbun run prisma generate
afterbun install
and the errors gone.
I didn't try that. Even if that does work, I believe there is still a bug here. Bun is intended to be a drop in replacement, and running prisma generate
after installing the package is not a step that's required when installing it with yarn or npm.
I am running into a similar error. It seems like bun fails to execute the postInstall script or something because I just don't have a .prisma
folder at all in node_modules
@sacummings91 Is my issue similar to yours? #5165
@akirarika I don't think so, but I'm sure it's all generally related to the same problem.
Just checked, I'm also missing the .prisma
folder in node_modules
, which as @sacummings91 mentioned, probably means it just isn't running the post-install hook at all. Also, I'm running this in Docker, forgot to mention that before.
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Linux 5.15.116.1-1.cm2 x86_64 unknown
What steps can reproduce the bug?
In a currently working Node JS app using Prisma, running in Azure App Service
What is the expected behavior?
The app should start successfully
What do you see instead?
The app fails to start with the following error message:
The possibly relevant contents of that file
Additional information
Prisma automatically generates a client when you install the package, using ~magic~ post install hooks (?) based on what's in your Prisma.schema file. https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/generating-prisma-client#generating-prisma-client-in-the-postinstall-hook-of-prismaclient