P
Prismaβ€’3w ago
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.
2 Replies
Prisma AI Help
Prisma AI Helpβ€’3w ago
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!
Nurul
Nurulβ€’3w ago
Hey! How have you initialised your PrismaClient? Can you share the code snippet?

Did you find this page helpful?