Skip to content

Fix the Vercel build: run the pinned pnpm through npx - #7

Merged
samarthmn merged 1 commit into
mainfrom
claude/vercel-pnpm
Nov 1, 2026
Merged

samarthmn merged 1 commit into
mainfrom
claude/vercel-pnpm

Conversation

@samarthmn

@samarthmn samarthmn commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

The first Vercel deployment failed during install:

Error: × the installed pnpm wrapper is missing at /vercel/.../pnpm-engine-12.11.2-.../node_modules/pnpm

Vercel's bundled pnpm reads packageManager (pnpm@12.11.2) and tries to switch itself to that version, which fails. site/vercel.json now runs pnpm 12.11.2 through npx for both install and build, so Vercel's own pnpm is never used. docs/releasing.md notes why and says to keep the version in step with packageManager.

Verified locally by simulating the Vercel build from a fresh clone: npx pnpm@12.11.2 install --frozen-lockfile --filter echo-site and VERCEL=1 npx pnpm@12.11.2 run build from site/ both succeed, and the build includes the Vercel Analytics script. This PR's Vercel preview deployment confirms it on Vercel itself.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated the Vercel setup instructions to reflect the package manager version used for installation and builds.
  • Chores
    • Updated Vercel installation and build commands to use the repository-pinned package manager version, keeping deployments aligned with the project configuration.

Vercel's bundled pnpm reads packageManager (pnpm@12.11.2), tries to
switch itself to it, and fails with "the installed pnpm wrapper is
missing". site/vercel.json now runs pnpm 12.11.2 through npx for both
install and build, so Vercel's own pnpm is never used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
echo-voice-web Ready Ready Preview Nov 1, 2026 10:24am UTC

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4c76002e-bd2f-46fe-b026-ff96d0c044d1
Commits

Reviewing files that changed from the base of the PR and between 4c85fe2 and 3c3312d.

Files selected for processing: 2
  • docs/releasing.md
  • site/vercel.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The Vercel configuration now runs install and build commands through pnpm 12.11.2 invoked with npx. The release instructions refer to this configuration and state that the pinned version should match packageManager in package.json.

Changes: Vercel pnpm configuration

Layer / File(s) Summary
Pin Vercel commands to pnpm 12.11.2
site/vercel.json, docs/releasing.md
The install and build commands use pnpm 12.11.2 through npx. The install command retains the frozen lockfile and echo-site filter. The release instructions point to the Vercel configuration and state that its pinned version should match packageManager in package.json.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · up to 3c331

The Vercel configuration and release instructions are aligned, with no identified merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: running the pinned pnpm version through npx for the Vercel build.
Description check Passed The description explains what changed, why it was needed, and how it was tested. It covers the required sections with sufficient detail, although it does not reproduce the template checklist.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
3c3312d 2026-11-01T10:24:18.689Z View logs ↗

@samarthmn
samarthmn merged commit 1c00384 into main Nov 1, 2026
6 of 7 checks passed
@samarthmn
samarthmn deleted the claude/vercel-pnpm branch November 2, 2026 14:39
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