PrismaP
Prisma5mo ago
8 replies
Darkstar

Prisma Client could not locate the Query Engine

I have a project that uses Next.js 15.3.5 and prisma 6.13.0 and @prisma/client 6.13.0. Deployed on Supabase Postgres. Project is deployed on Vercel. During development I work on a local Supabase instance.

Things were working fine. I had made small changes to the schema over the last couple of weeks, so yesterday I finally did a migration and updated the Supabase DB as well.

But somehow after that I am getting the below error.

I was on Prisma 6.13.0 as stated above, but because of this I bumped it to latest 6.15.0, but still the same issue is present.

Unhandled Rejection: Error [PrismaClientInitializationError]: 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 a bundler that has not copied "libquery_engine-rhel-openssl-3.0.x.so.node" next to the resulting bundle.
Ensure that "libquery_engine-rhel-openssl-3.0.x.so.node" has been copied next to the bundle or in "src/generated/prisma".

We would appreciate 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-bundler-investigation

The following locations have been searched:
  /var/task/src/generated/prisma
  /var/task/.next/server
  /vercel/path0/src/generated/prisma
  /var/task/.prisma/client
  /tmp/prisma-engines
    at ay (.next/server/chunks/693.js:30:1107)
    at async Object.loadLibrary (.next/server/chunks/693.js:55:9086)
    at async oc.loadEngine (.next/server/chunks/693.js:59:450)
    at async oc.instantiateLibrary (.next/server/chunks/693.js:58:4263) {
  clientVersion: '6.15.0',
  errorCode: undefined
}
Was this page helpful?