PrismaP
Prismaβ€’9mo agoβ€’
2 replies
MatΔ›j

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.
Was this page helpful?