-
-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Labels
Description
Related plugins
Describe the bug
I am doing yarn install
in docker container, and it dies with error:
➤ YN0009: @swc/core@npm:1.13.20 [ea73e] couldn't be built successfully (exit code 129, logs can be found here: /tmp/xfs-f63cd8fc/build.log) /tmp/xfs-f63cd8fc/build.log
After 2 days of searching for the issue, I realized that the problem appears after deleting the yarn.lock file, and as a result, adding lines related to @swc/core of older version(in my case 1.13.19) makes the problem disappear.
Reproduction
It can't be reproduced, 'cause of docker
Steps to reproduce
- Create default Dockerfile for react app and make sure @swc/core is
1.13.20
inyarn.lock
file - Run it
System Info
FROM node:22.20.0-alpine3.21 AS base
ENV YARN_VERSION=4.10.3
RUN corepack enable && \
yarn set version ${YARN_VERSION}
Also, I use `.yarnrc.yml` file with: `nodeLinker: node-modules`
Used Package Manager
yarn
Logs
build.log:
# This file contains the result of Yarn building a package (@swc/core@virtual:....#npm:1.13.20)
# Script name: postinstall
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.