Skip to content

Fix Vercel pnpm install failure#6

Merged
marawan206 merged 2 commits into
mainfrom
ui-revamp
Jun 12, 2026
Merged

Fix Vercel pnpm install failure#6
marawan206 merged 2 commits into
mainfrom
ui-revamp

Conversation

@marawan206

Copy link
Copy Markdown
Contributor

The production deploy on main is failing at pnpm install with ERROR packages field missing or empty.

Cause

pnpm-workspace.yaml declared only build-script approval and had no packages field. On the deploy target (pnpm 9.x, which Vercel selects by project creation date) the presence of that file forces workspace mode, which requires a packages field — so install aborts.

Changes

  • Remove pnpm-workspace.yaml; move build-script approval to pnpm.onlyBuiltDependencies in package.json (read by pnpm 9.x).
  • Add a packageManager field pinning pnpm to 9.15.9 so local and Vercel use the same version, eliminating the config drift that caused the break.
  • Bump Next 14.2.614.2.35 for the latest 14.x bug and security fixes (no major-version change).

Verification

  • pnpm install --frozen-lockfile (the command Vercel runs) exits 0 with the pinned pnpm 9.15.9.
  • pnpm run build compiles and prerenders all pages.

The pnpm-workspace.yaml only declared build-script approval and had no packages field. On the deploy target (pnpm 9.x) that file forces workspace mode, which requires a packages field, so install failed with "packages field missing or empty".

Move build-script approval to pnpm.onlyBuiltDependencies in package.json, which pnpm 9.x reads, and drop the workspace file.
Add a packageManager field so local and Vercel use the same pnpm
version, eliminating the config drift that broke the last deploy.
Pin to 9.x to match Vercel's current selection.

Bump Next 14.2.6 -> 14.2.35 for the latest 14.x bug and security
fixes (no major-version changes).
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
comfyci Ready Ready Preview, Comment Jun 9, 2026 4:58pm

Request Review

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednext@​14.2.355450949970

View full report

@marawan206 marawan206 merged commit ba00db2 into main Jun 12, 2026
8 checks passed
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