@prisma/client did not initialize yet

The Prisma client was not generated during the build.

Last updated November 25, 2026

The error

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

Why it happens

The Prisma client was not generated during the build.

How to fix it

Run prisma generate in your Dockerfile build step, then upload the Dockerfile again and redeploy.

RUN --mount=type=secret,id=appenv,target=/run/secrets/appenv sh -c 'set -a; . /run/secrets/appenv; set +a; npx prisma generate && npm run build'

Still stuck

Read the build log and runtime logs, or browse all errors.

Start for free

Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.

$npx ezhst skill install