# @prisma/client did not initialize yet

The Prisma client was not generated during the build.

## 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](/docs/cli/deployments-log) and [runtime logs](/docs/cli/logs), or browse [all errors](/errors).
