Error: Prisma Client could not locate the Query Engine for runtime "linux-musl-arm64-openssl-3.0.x". #22519
-
QuestionHi, I'm facing the FROM node:alpine
WORKDIR /app
COPY package.json /app/package.json
RUN apk add openssl3
RUN npm install
COPY . /app
RUN npx prisma generate
EXPOSE 3000
CMD ["npm", "run", "start"] And my generator client {
provider = "prisma-client-js"
binaryTargets = ["linux-musl-arm64-openssl-3.0.x"]
} I'm using Docker Compose, here's the file if it could help with something: version: '3.8'
services:
app:
build: .
ports:
- "3000:3000"
volumes:
- .:/app
- /usr/src/app/node_modules
working_dir: /app
command: npm run start:dev
test:
build: .
volumes:
- .:/app
working_dir: /app
command: npm run test After running my app with
Error shows that I should include What is worth mentioning if I do I managed to somewhat get around this issue by using RUN apt-get update -y && apt-get install -y openssl But I would really want to use the Could someone help me with fixing this issue? Thanks in advance for future responses :) (I'm really sorry if I may sound impolite or stuff like that - I have no intention of being so. I'm just really tired because its been a week since I tried to get past this error) How to reproduce (optional)No response Expected behavior (optional)No response Information about Prisma Schema, Client Queries and Environment (optional)
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
me too!! |
Beta Was this translation helpful? Give feedback.
-
This has been my issue for a while now, however, I've seen a solution which might work for you, add |
Beta Was this translation helpful? Give feedback.
-
I have same error, it run fine on local but When I build to Vercel run to error. It only happended in server action.
|
Beta Was this translation helpful? Give feedback.
Finally it worked for me, my issue was that I was referring to the host port instead of the container port in my db connection string as I was using docker compose for all my services. The initial suggestion still stands however.