PrismaP
Prisma4mo ago
5 replies
Diwan Sachidu

Vercel Deploy Error

I am using
"@prisma/client": "^6.14.0",
"prisma": "^6.14.0",

generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
previewFeatures = ["fullTextSearchPostgres"]
}

[Better Auth]: PrismaClientInitializationError Error [PrismaClientInitializationError]:
Invalid prisma.verification.create() invocation:
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".

We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs.

This is likely caused by tooling that has not copied "libquery_engine-rhel-openssl-3.0.x.so.node" to the deployment folder.
Ensure that you ran prisma generate and that "libquery_engine-rhel-openssl-3.0.x.so.node" has been copied to ".next/server/app/api/auth/[...all]".
.
Please help us by answering a few questions: https://pris.ly/engine-not-found-tooling-investigation

The following locations have been searched:
/var/task/.next/server/app/api/auth/[...all]
/vercel/path0/src/generated
/vercel/path0/src/generated/prisma
/vercel/path0/.prisma/client
/tmp/prisma-engine
}
2025-10-12T07:52:08.316Z [error] # SERVER_ERROR: Error [PrismaClientInitializationError]:
Invalid prisma.verification.create() invocation:

Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".

We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs.

This is likely caused by tooling that has not copied "libquery_engine-rhel-openssl-3.0.x.so.node" to the deployment folder.
Ensure that you ran prisma generate and that "libquery_engine-rhel-openssl-3.0.x.so.node" has been copied to ".next/server/app/api/auth/[...all]".

We would appreciate it if you could take the time to share some information with us.
Please help us by answering a few questions: https://pris.ly/engine-not-found-tooling-investigation
Prisma
Build, fortify, and grow your application easily with an intuitive data model, type-safety, automated migrations, connection pooling and caching.
Prisma | Instant Postgres plus an ORM for simpler db workflows
GitHub
Hi, you have been directed to this issue because we want to learn more about your project setup. Thanks to your answers, we will be able to make better design decisions in the future. We'd appr...
User questions: Engine not found (tooling) · prisma prisma · Disc...
Was this page helpful?