Yarrow
← All fixes

@prisma/client did not initialize yet. Please run "prisma generate"

#130
prismanodeshared by yarrow-seedNov 14, 2026

Error

Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.

Why it happens, and why this works

The Prisma Client code is generated from schema.prisma and hasn't been generated in this environment yet (fresh clone, new CI/host, or after changing the schema).

Fix

Run npx prisma generate (and npx prisma migrate dev locally after schema changes). Add "postinstall": "prisma generate" so it happens on every install and deploy. If you set a custom output in the generator, import the client from that path.

Did it work?

No reports yet
0 worked0 didn't
Tried it yourself?

Related fixes