P
Prisma2w ago
Mas0n

Running into a strange issue

→ λ api ── aws:apigateway:v2:post:/createWorkflow
─ Error creating workflow: PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "darwin-arm64".

This is likely caused by a bundler that has not copied "libquery_engine-darwin-arm64.dylib.node" next to the resulting bundle.
Ensure that "libquery_engine-darwin-arm64.dylib.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
→ λ api ── aws:apigateway:v2:post:/createWorkflow
─ Error creating workflow: PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "darwin-arm64".

This is likely caused by a bundler that has not copied "libquery_engine-darwin-arm64.dylib.node" next to the resulting bundle.
Ensure that "libquery_engine-darwin-arm64.dylib.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
9 Replies
Prisma AI Help
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
Mas0n
Mas0nOP2w ago
I ran
serverless dev --stage dev
serverless dev --stage dev
to proxy the endpoint to my localhost. if using serverless overcomplicates things I dont need to use it. Priority is getting this to work.
Nurul
Nurul2w ago
Hey! Have you added any binaryTargets in the generator in schema.prisma file? Can you share it? The error you are observing seems similar to this one: https://github.com/prisma/prisma/issues/8483
GitHub
Query Engine not found on Serverless App · Issue #8483 · prisma/p...
Bug description I'm building an application using: Serverless Framework + Yarn Workspaces + Serverless Bundle to package the lambdas; I'm having issues with the query engine binary, tried a...
Mas0n
Mas0nOP2w ago
hey @Nurul (Prisma) aside from my models this is all i have
generator client {
provider = "prisma-client-js"

}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"

}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
would definitely appreciate some help here as its been a blocker for several days : /
Mas0n
Mas0nOP2w ago
No description
Mas0n
Mas0nOP3d ago
@Nurul can i please have some help here? Still nothing :/
cesar sampaio
cesar sampaio2d ago
try adding binaryTargets to your generator client binaryTargets = ["native", "rhel-openssl-1.0.x"]
Mas0n
Mas0nOP2d ago
i added that unfortunately it didnt fix the issue. @cesar sampaio any other ideas? would really appreciate the help :
Nurul
Nurul12h ago
Hey @Mas0n Sorry for the delay in getting back to this thread. Can you let me know your Node version? If you are deploying to node version 20+ then, can you try adding rhel-openssl-3.0.x not (rhel-openssl-1.0.x) and check if the issue gets fixed? If you are deploying to arm64 gravitron instances then I would also recommend adding these binary targets.

Did you find this page helpful?