Dashboard › craft › getsentry/craft: pnpm overrides don't a…
019ef40b-f5dc-7b01-a2d4-0d92e67e530bTrap: adding a pnpm.overrides entry for a package (e.g., "vite": "^7.3.5") looks like it should force that version everywhere, including peer dep resolution. Fix: pnpm overrides do NOT apply to automatically-installed peer dependencies. The override appears in the lockfile header but the peer dep still resolves to its own preferred version. Solution: add the package as a direct devDependency (pnpm add -D vite@^7.3.5) — this pins the version in the lockfile and peer dep resolution picks it up. The override entry can be kept for belt-and-suspenders but the direct dep is what actually works.