🗄️Prisma isn't ready (prisma generate)
@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
- Run npx prisma generate in the terminal
- 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
- Database connection failed
Can't reach database server - Table doesn't exist
relation "…" does not exist - Login address mismatch (redirect_uri_mismatch)
Error 400: redirect_uri_mismatch - Blocked by security rules (RLS), so it won't save
new row violates row-level security policy - Tried to save a value that already exists (duplicate)
duplicate key value violates unique constraint - Login info has expired (JWT)
JWT expired - Login app info is wrong (invalid_client)
Error 401: invalid_client - Google login blocked (app not verified, testing mode)
Access blocked: app has not completed the Google verification process