fix: use pnpm 10 for storybook vercel build#6132
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Vercel – storybook check fails on every PR that triggers a real storybook deploy (e.g. #6118, #6129) with:
Cause
The storybook Vercel project uses the root
vercel.json, which ran a barepnpm install. Vercel pins that project to pnpm@9.x, which can't read the pnpm-10-formatpatchedDependenciesobject inpnpm-lock.yaml(regenerated when the lockfile was migrated to pnpm 10 in #6044). #6044 fixed this forpackages/webapp/vercel.jsonbut missed the root config.Fix
Force
corepack pnpm@10.33.4in the rootvercel.json, mirroring the webapp fix. webapp is unaffected (it has its own override).Verified locally:
pnpm@10.33.4 install --frozen-lockfilepasses;pnpm@9fails on the same lockfile.🤖 Generated with Claude Code
Preview domain
https://fix-storybook-vercel-pnpm10.preview.app.daily.dev