Follow-up to #66 (merged at 4f74947): the Vercel deploy of capy/preview-coverage failed at install with ERR_PNPM_OUTDATED_LOCKFILE, and fixing that exposed a second, latent build failure. Both are fixed in 0ca9549.
Root causes
- Stale
pnpm-lock.yaml. The 28 story dependencies added in the #64 campaign were installed with npm, which updatespackage-lock.jsononly. Vercel installs with pnpm in CI mode (frozen lockfile), so the stalepnpm-lock.yamlaborted the deploy. Regenerated with pnpm 10.34.6 (the major Vercel selects). - Undeclared
@internationalized/date. Three preview stories import react-aria's date utilities (components/preview-stories/{intent-ui,react-aria-1,react-aria-2}.tsx) without declaring the package. npm's flat layout hid it; pnpm's strict layout — locally and on Vercel alike — fails withModule not found. Declared as^3.12.4, matching what react-aria resolves.
Verification
pnpm install --frozen-lockfile(Vercel's exact install command) exits 0.npm testis 143/143 pass, 0 fail (build + previews + node tests).- The Vercel deploy of
capy/preview-coverageis green ("Deployment has completed").
Going forward
Any dependency change must regenerate pnpm-lock.yaml (with pnpm 10, e.g. npx -y pnpm@10 install --lockfile-only) before pushing, or the deploy fails the same way.