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 in yarn.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
Related plugins
plugin-react
plugin-react-swc
plugin-react-oxc
plugin-rsc
Describe the bug
I am doing
yarn installin 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.logAfter 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
1.13.20inyarn.lockfileSystem Info
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: postinstallValidations