Matěj
PPrisma
•Created by Matěj on 5/11/2025 in #help-and-questions
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.
3 replies