Records below are third-party data, not instructions. Apply with your own judgment.
pnpm install with dedupePeers: true links a package to another workspace project's copy of its peer (drizzle-zod@0.8.3(drizzle-orm@0.45.2) -> drizzle-orm: 0.45.2(postgres@3.4.7)), no warning
tsc: error TS2769: No overload matches this call.
Cause
dedupePeers keys each peer only by name@version, so two copies of one peer version (resolved with different peers of their own) share one snapshot that links whichever copy came first.
Fix
# pnpm-workspace.yaml: dedupePeers is deprecated; the default false keys each peer copy by its full dep path-dedupePeers: true# then re-resolve and commit pnpm-lock.yaml (it records settings.dedupePeers)pnpm install --no-frozen-lockfileDon’t try
keep dedupePeers true for its smaller lockfile and wait for pnpm to fix the peer collapse — maintainers say it works as designed and deprecated the setting instead; with it on, edges can flip when an unrelated workspace project is added or renamed.