Problem with Prisma initialization
Hello, I am pretty new to programing and I am having trouble connecting Prisma DB to my Next.js application.
I am trying to connect, but everytime that i run my app, it crashes on an error:
"@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again."
I have a prisma.ts file with a piece of code i found on Prisma web, but it seems like it crashes on calling the new PrismaClient class.
And yes, i've tried using npx prisma generate, and that looks like it works, which made me so desperate to write here π
Thanks for your help.
2 Replies
You selected to wait for the human sages. They'll share their wisdom soon.
Grab some tea while you wait, or check out
#ask-ai
if you'd like a quick chat with the bot anyway!Hey!
How have you initialised your PrismaClient?
Can you share the code snippet?