[Bug?]: yarn fails to symlink in-range workspace dependency
Author: trusktrCreated Aug 17, 2026Updated Aug 21, 2026
Labelsbug
Self-service
- I'd be willing to implement a fix
Describe the bug
Project A depends on B@^5.0.0.
Project B is at 5.2.0.
5.2.0 satisfies the range ^5.0.0, however Yarn does not link B into node_modules of A.
Workaround
To fix the issue, A's dependency has to be changed to B@^5.2.0, defeating the purpose of using a range.
To reproduce
TODO. Let me know if this is expected or seems like a bug. I'll make a repro.
Environment
System:
OS: macOS 26.5
CPU: (8) arm64 Apple M2
Binaries:
Node: 26.7.0 - /private/var/folders/7y/wy4mhdj114g5xj1ktvh6hdz80000gn/T/xfs-0176e10c/node
Yarn: 4.18.0 - /private/var/folders/7y/wy4mhdj114g5xj1ktvh6hdz80000gn/T/xfs-0176e10c/yarn
npm: 12.0.2 - /Users/trusktr/.npm-global/bin/npm
pnpm: 10.24.0 - /Users/trusktr/.npm-global/bin/pnpm
Deno: 1.38.3 - /opt/homebrew/bin/denoAdditional context
No response
Source: yarnpkg/berry