I’m having trouble with prisma, i’ve done prisma generate before deploying to github and everything, also added prisma generate on vercel build command and npm install in install commands, this is my prisma generator
generator client {
provider = “prisma-client-js”
binaryTargets = [“native”, “rhel-openssl-3.0.x”]
}
i’ve checked in node modules that libquery_engine-rhel-openssl-3.0.x.so.node file exists before i send it to production in git.
after deployment i try to acess an user page for example and the error it gives me is:
Application error: a server-side exception has occurred while loading ovum.vercel.app (see the server logs for more information).
Digest: 2340995607
after that i check the logs and the error is:
⨯ Error prisma.user.findUnique() invocation:
Prisma Client could not locate the Query Engine for runtime “rhel-openssl-3.0.x”.
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 “node_modules/.prisma/client”.
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-tooling-investigation
The following locations have been searched:
/var/task/node_modules/.prisma/client
/var/task/node_modules/@prisma/client
/vercel/path0/node_modules/@prisma/client
/tmp/prisma-engines
at async l (.next/server/app/user/[id]/page.js:1:15605) {
clientVersion: ‘6.10.1’,
errorCode: undefined,
retryable: undefined,
digest: ‘2340995607’
}
Thank you.