VibeDict

🗄️Prisma isn't ready (prisma generate)

What you'll see
@prisma/client did not initialize yet. Please run "prisma generate"

The connection code for the database tool (Prisma) hasn't been created yet.

🤔 Why does it happen?

  • prisma generate wasn't run after installing or changing the schema
  • generate is missing from the build step when deploying

🔧 Try this

  1. Run npx prisma generate in the terminal
  2. Add prisma generate to the build command in package.json

🤖 Ask your AI like this

I get the error '@prisma/client did not initialize yet'. Please set it up so prisma generate runs automatically both on my computer and in the deploy environment.

Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.

Related terms

Other errors in this group