PrismaP
Prismaโ€ข14mo agoโ€ข
8 replies
sommeeeR

Prisma Client could not locate the Query Engine for my runtime on AWS

guys im deploying prisma to a lambda on AWS with arch="arm_64"

in my prisma schema i have this:
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "linux-arm64-openssl-3.0.x"]
}


however once deployed im getting this error:
Prisma Client could not locate the Query Engine for runtime "linux-arm64-openssl-1.0.x".

This happened because Prisma Client was generated for "debian-openssl-1.1.x", but the actual deployment required "linux-arm64-openssl-1.0.x".
Add "linux-arm64-openssl-1.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:

generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "linux-arm64-openssl-3.0.x", "linux-arm64-openssl-1.0.x"]
}


anyone know what it might be? i would like to use 3.0.x, it works with 1.0.x but not 3.0.x ๐Ÿ˜ฎ
Was this page helpful?