Skip to content

fix: use pnpm 10 for storybook vercel build#6132

Merged
tsahimatsliah merged 1 commit into
mainfrom
fix/storybook-vercel-pnpm10
Jun 2, 2026
Merged

fix: use pnpm 10 for storybook vercel build#6132
tsahimatsliah merged 1 commit into
mainfrom
fix/storybook-vercel-pnpm10

Conversation

@tsahimatsliah
Copy link
Copy Markdown
Member

@tsahimatsliah tsahimatsliah commented Jun 2, 2026

Problem

The Vercel – storybook check fails on every PR that triggers a real storybook deploy (e.g. #6118, #6129) with:

ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation.
The current "patchedDependencies" configuration doesn't match the value found in the lockfile

Cause

The storybook Vercel project uses the root vercel.json, which ran a bare pnpm install. Vercel pins that project to pnpm@9.x, which can't read the pnpm-10-format patchedDependencies object in pnpm-lock.yaml (regenerated when the lockfile was migrated to pnpm 10 in #6044). #6044 fixed this for packages/webapp/vercel.json but missed the root config.

Fix

Force corepack pnpm@10.33.4 in the root vercel.json, mirroring the webapp fix. webapp is unaffected (it has its own override).

Verified locally: pnpm@10.33.4 install --frozen-lockfile passes; pnpm@9 fails on the same lockfile.

🤖 Generated with Claude Code

Preview domain

https://fix-storybook-vercel-pnpm10.preview.app.daily.dev

The storybook Vercel project relies on the root vercel.json install
command, which ran a bare `pnpm install`. Vercel pins that project to
pnpm@9.x, which cannot read the pnpm-10-format `patchedDependencies` in
the lockfile (regenerated in #6044), failing with
ERR_PNPM_LOCKFILE_CONFIG_MISMATCH and breaking every storybook deploy.

Force corepack pnpm@10.33.4, mirroring the fix already applied to
packages/webapp/vercel.json in #6044.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Jun 2, 2026 1:20pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Jun 2, 2026 1:20pm

Request Review

@tsahimatsliah tsahimatsliah merged commit f0b4af4 into main Jun 2, 2026
12 checks passed
@tsahimatsliah tsahimatsliah deleted the fix/storybook-vercel-pnpm10 branch June 2, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant