An error occurred @prisma/client did not initialize yet. Please run \"prisma generate\" and try to import it again. #21342
Unanswered
aminsoraya
asked this question in
Q&A
Replies: 1 comment
-
Hello @aminsoraya 👋 Can you share how your deployment script looks like? You would need to make sure that Here's a reference example: https://github.com/prisma/deployment-example-vercel/blob/main/package.json#L13 Can you try it out? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug description
I have rebind prisma connection string to my own server and I regenerate new schema . Everything is okay in development mode. But when I deploy a project . Bellow Error shown in console :
"An error occurred @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.\nIn case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues".
What is it and how can I fixt it .
Edit
Here are snipped which I used prisma in main component :
Prisma Component :
How to reproduce
Expected behavior
return result as expected
Prisma information
// Add your schema.prisma
// Add your code using Prisma Client
Environment & setup
Prisma Version
Beta Was this translation helpful? Give feedback.
All reactions