Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency on "@parcel/watcher": 2.0.4 breaks docker buildx on apple silicon. #19457

Closed
1 of 4 tasks
LeunensMichiel opened this issue Oct 5, 2023 · 4 comments
Closed
1 of 4 tasks
Labels

Comments

@LeunensMichiel
Copy link

LeunensMichiel commented Oct 5, 2023

Current Behavior

We have recently introduced NX to our monorepo. We build our application with docker like this:

docker buildx build \
	--tag my-app \
	--file packages/my-app/Dockerfile \
	.

The other devs don't have an issue as they're on windows, but I got this:

At the yarn install step in Dockerfile:

@parcel/watcher@npm:2.0.4 must be built because it never has been before or the last one failed
58.74 ➤ │ @parcel/watcher@npm:2.0.4 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-3b5244bb/build.log)
58.74 ➤ │ nx@npm:16.10.0 [72f3e] must be built because it never has been before or the last one failed

When investigating further, it seems @parcel/watcher@2.0.4 has some issues with ARM/Apple Silicon.

I fixed the error by adding

"resolutions": {
    "@parcel/watcher": "2.3.0"
  },

in our package.json. This fixes the docker build.

Expected Behavior

Don't fail at yarn in Dockerfile.

GitHub Repo

No response

Steps to Reproduce

  1. Build dockerfile with yarn and NX (16.10.0)

Nx Report

\

Failure Logs

No response

Package Manager Version

yarn v3.6.4

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@dbjorge
Copy link

dbjorge commented Oct 20, 2023

Dupe of #13973

@Cammisuli
Copy link
Member

fixed by #19751

@LeunensMichiel
Copy link
Author

Epic, thanks!

Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants