Skip to content
Discussion options

You must be logged in to vote

i think i found the problem, locally it loads swc/core for ARM64-based Mac M1. and locked in package.json
but, destination is AMD64 (x64) Linux processor.

so problem was @swc/core package, additionally it needs @swc/core-linux-x64-musl aligning it in docker solves the problem.

# All deps stage
FROM base AS deps
WORKDIR /app
ADD package.json package-lock.json ./
ENV NODE_ENV=development
RUN npm ci --ignore-scripts=false && npm install --save-dev @swc/[email protected] 👈  this is the fix

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@bencagri
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by bencagri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants