Skip to content

fix(deps): repair broken pnpm-lock.yaml (duplicate mapping key)#296

Merged
beenuar merged 1 commit into
mainfrom
fix/broken-pnpm-lockfile
Jun 9, 2026
Merged

fix(deps): repair broken pnpm-lock.yaml (duplicate mapping key)#296
beenuar merged 1 commit into
mainfrom
fix/broken-pnpm-lockfile

Conversation

@beenuar

@beenuar beenuar commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

The pnpm-lock.yaml on main became corrupted with a duplicated mapping key (/@mdx-js/react@3.1.1(@types/react@19.2.17)(react@19.2.7) at line 5599) after squash-merging the batch of Dependabot JS dependency PRs (#280, #285, #283, #286). This broke pnpm install --frozen-lockfile, failing every CI job that installs JS deps.

Impact (before fix)

  • CIfailure: Web — Lint & Type-check, MCP — Type-check, Test & Build, SDK — TypeScript (vitest) all failed at Install pnpm dependencies with ERR_PNPM_BROKEN_LOCKFILE ... duplicated mapping key (5599:3)
  • Security Auditfailure: same Install pnpm dependencies step exited 1

Fix

Regenerated the lockfile with the repo-pinned pnpm@8.15.1 (pnpm install --lockfile-only). Minimal diff: the 26-line duplicate @mdx-js/react block is removed, lockfileVersion: '6.0' preserved, and pnpm install --frozen-lockfile passes locally.

Test plan

  • pnpm install --frozen-lockfile succeeds locally (pnpm@8.15.1)
  • lockfile has a single @mdx-js/react@3.1.1 entry
  • CI green on this PR (Web/MCP/SDK install + Security Audit)

Made with Cursor

The lockfile on main had a duplicated mapping key from squash-merging
multiple Dependabot JS dependency PRs, breaking pnpm install --frozen-lockfile
and failing Web/MCP/SDK CI jobs. Regenerated with pnpm@8.15.1 (lockfileVersion 6.0).

Co-authored-by: Cursor <cursoragent@cursor.com>
@beenuar beenuar merged commit 545963c into main Jun 9, 2026
24 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