Backend Deployement error in prisma regarding "debian-openssl-3.0.x

So, I am using turbo-repo and inside one of my apps is webhook my ts backed is build and start running with node dist/indes.js but during the deployment phase i am getting this error from prisma.

==> Running 'cd apps/webhook/dist && node index.js'
> Server started on port 4000
/opt/render/project/src/apps/webhook/dist/index.js:64
${et(e)}`}var zd=L("prisma:client:engines:resolveEnginePath"),Yd=()=>new RegExp("runtime[\\\\/]library\\.m?js$");async function za(e,t){let r={binary:process.env.PRISMA_QUERY_ENGINE_BINARY,library:process.env.PRISMA_QUERY_ENGINE_LIBRARY}[e]??t.prismaPath;if(r!==void 0)return r;let{enginePath:n,searchedLocations:i}=await Zd(e,t);if(zd("enginePath",n),n!==void 0&&e==="binary"&&li(n),n!==void 0)return t.prismaPath=n;let s=await nt(),a=t.generator?.binaryTargets??[],o=a.some(f=>f.native),l=!a.some(f=>f.value===s),u=__filename.match(Yd())===null,c={searchedLocations:i,generatorBinaryTargets:a,generator:t.generator,runtimeBinaryTarget:s,queryEngineName:Ya(e,s),expectedLocation:Er.default.relative(process.cwd(),t.dirname),errorStack:new Error().stack},d;throw o&&l?d=Wa(c):l?d=Qa(c):u?d=Ja(c):d=Ha(c),new R(d,t.clientVersion)}async function Zd(engineType,config){let binaryTarget=await nt(),searchedLocations=[],dirname=eval("__dirname"),searchLocations=[config.dirname,Er.default.resolve(dirname,".."),config.generator?.output?.value??dirname,Er.default.resolve(dirname,"../../../.prisma/client"),"/tmp/prisma-engines",config.cwd];__filename.includes("resolveEnginePath")&&searchLocations.push(Yo());for(let e of searchLocations){let t=Ya(engineType,binaryTarget),r=Er.default.join(e,t);if(searchedLocations.push(e),Ka.default.existsSync(r))return{enginePath:r,searchedLocations}}return{enginePath:void 0,searchedLocations}}function Ya(e,t){return e==="library"?qr(t,"fs"):`query-engine-${t}${t==="windows"?".exe":""}`}var Hi=k(bi());function Za(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,t=>`${t[0]}5`):""}function Xa(e){return e.split(`
PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "debian-openssl-3.0.x".
This is likely caused by a bundler that has not copied "libquery_engine-debian-openssl-3.0.x.so.node" next to the resulting bundle.
Ensure that "libquery_engine-debian-openssl-3.0.x.so.node" has been copied next to the bundle or in "../../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-bundler-investigation
The following locations have been searched:
  /opt/render/project/src/apps/node_modules/.prisma/client
  /opt/render/project/src/apps/webhook
  /opt/render/project/src/node_modules/@prisma/client
  /opt/render/project/src/.prisma/client
  /tmp/prisma-engines
    at za (/opt/render/project/src/apps/webhook/dist/index.js:64:805)
    at async Object.loadLibrary (/opt/render/project/src/apps/webhook/dist/index.js:111:10076)
    at async _r.loadEngine (/opt/render/project/src/apps/webhook/dist/index.js:112:448)
    at async _r.instantiateLibrary (/opt/render/project/src/apps/webhook/dist/index.js:111:12583) {
  clientVersion: '5.22.0',
  errorCode: undefined
}
Node.js v18.20.4

The link that you provided ( User questions: Engine not found (bundler) · prisma/prisma · Discussion #19499 · GitHub ), contains a solution provided by the comment author.

1 Like

actually thats my solution i was the one who posted where I later updated it with the solution.

Just I forgot to update it here thanks.

I didn’t catch that both of the usernames contained ‘007’.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.