[Bug?]: The yarn dedupe
command fails if there is esbuild
package in the workspace package.json
#6176
Labels
bug
Something isn't working
Self-service
Describe the bug
The
yarn dedupe
command fails withError: Assertion failed: The package (--locatorHash--) should have been registered
.To reproduce
Create a small package.json with
"dependencies": { "@yarnpkg/builder": "^3.3.0", "esbuild": "^0.15.18" }
Run
yarn
andyarn dedupe
.Expected: The dedupe command should work.
Actual: The dedupe command fails with
Error: Assertion failed: The package (--locatorHash--) should have been registered
Environment
System: OS: macOS 14.3.1 CPU: (10) arm64 Apple M1 Max Binaries: Node: 16.17.1 - /private/var/folders/x2/2sz9b9b9655ct3zqnwfhfpmh0000gn/T/xfs-e8030edc/node Yarn: 3.6.1 npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm bun: 1.0.2 - /opt/homebrew/bin/bun
Additional context
The command works if we remove the
esbuild
from the package.json. Looks like the npm alias@yarnpkg/builder
has "esbuild": "npm:esbuild-wasm@^0.15.15" is causing this issue.The text was updated successfully, but these errors were encountered: