Skip to content

Commit 13eeb6e

Browse files
authored
fix PrismaClientInitializationError (#326)
api-1 | PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "linux-arm64-openssl-3.0.x". api-1 | api-1 | This happened because Prisma Client was generated for "linux-arm64-openssl-1.1.x", but the actual deployment required "linux-arm64-openssl-3.0.x". api-1 | Add "linux-arm64-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it: api-1 | api-1 | generator client { api-1 | provider = "prisma-client-js" api-1 | binaryTargets = ["native", "debian-openssl-3.0.x", "linux-arm64-openssl-3.0.x"] api-1 | }
1 parent 0a0dd09 commit 13eeb6e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ COPY ./prisma/schema.prisma ./
88
COPY package*.json ./
99

1010
# Install app dependencies
11+
ENV NODE_TLS_REJECT_UNAUTHORIZED='0'
1112
RUN npm ci --verbose
1213

1314
COPY tsconfig*.json ./

prisma/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ WORKDIR /app
66

77
COPY . .
88

9+
ENV NODE_TLS_REJECT_UNAUTHORIZED='0'
910
RUN npm ci --verbose
1011

1112
RUN chmod +x /app/wait-for-it.sh

prisma/schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
generator client {
22
provider = "prisma-client-js"
3-
binaryTargets = ["native", "debian-openssl-3.0.x"]
3+
binaryTargets = ["native", "debian-openssl-3.0.x", "linux-arm64-openssl-3.0.x"]
44
}
55

66
datasource db {

0 commit comments

Comments
 (0)