Samrith Shankar
08/15/2022, 4:28 AMPRISMA_QUERY_ENGINE_LIBRARY=/opt
And when I
ls /opt
I get the following output:
libquery_engine-rhel-openssl-1.0.x.so.node
But when I run the lambda I still get error:
"Runtime.UnhandledPromiseRejection: Error: Query engine library for current platform \"linux-arm64-openssl-1.0.x\" could not be found.",
"You incorrectly pinned it to linux-arm64-openssl-1.0.x",
"",
"This probably happens, because you built Prisma Client on a different platform.",
"(Prisma Client looked in \"/var/task/src/libquery_engine-linux-arm64-openssl-1.0.x.so.node\")",
"",
"Searched Locations:",
"",
" /.prisma/client",
" /var/task",
" /var/task/src",
" /var/task/src",
" /tmp/prisma-engines",
" /var/task/src",
"",
"You already added the platforms \"darwin\", \"linux-arm64-openssl-1.0.x\" to the \"generator\" block",
"in the \"schema.prisma\" file as described in <https://pris.ly/d/client-generator>,",
"but something went wrong. That's suboptimal.",
"",
"Please create an issue at <https://github.com/prisma/prisma/issues/new>",
" at process.<anonymous> (file:///var/runtime/index.mjs:775:15)",
" at process.emit (node:events:527:28)",
" at emit (node:internal/process/promises:140:20)",
" at processPromiseRejections (node:internal/process/promises:274:27)",
" at processTicksAndRejections (node:internal/process/task_queues:97:32)"
Any idea what am I missing?
EDIT: Switching engine type to binary
and uploading the binary, worked!