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: 3 comments 6 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@coreybrowndev
Comment options

@bencagri
Comment options

Answer selected by bencagri
Comment options

You must be logged in to vote
3 replies
@coreybrowndev
Comment options

@mikedpid
Comment options

@thetutlage
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants