Skip to content

Fix build: deduplicate Vite to v8 via pnpm override#22

Merged
basmulder03 merged 2 commits intorenovate/major-majorfrom
copilot/sub-pr-21
Mar 16, 2026
Merged

Fix build: deduplicate Vite to v8 via pnpm override#22
basmulder03 merged 2 commits intorenovate/major-majorfrom
copilot/sub-pr-21

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 16, 2026

Upgrading to Vite 8 caused a TypeScript build failure because @vitest/mocker pulled in vite@7.3.1 as a transitive peer, resulting in two incompatible Plugin type definitions in the same graph. TypeScript rejected the @vitejs/plugin-react-swc return type since Vite 8's Plugin (via rolldown's MinimalPluginContext with pluginName) was not assignable to Vite 7's.

Changes

  • package.json: Added pnpm.overrides to force vite to ^8.0.0 across the entire dependency tree, collapsing both copies into one.
  • pnpm-lock.yaml: Regenerated — vite@7.3.1 and the vite@7.3.1-flavored @vitest/mocker snapshot are removed; only vite@8.0.0 remains.
"pnpm": {
  "overrides": {
    "vite": "^8.0.0"
  }
}

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: basmulder03 <20653542+basmulder03@users.noreply.github.com>
Copilot AI changed the title [WIP] Update major dependencies for jsdom and vite Fix build: deduplicate Vite to v8 via pnpm override Mar 16, 2026
Copilot AI requested a review from basmulder03 March 16, 2026 14:25
@basmulder03 basmulder03 marked this pull request as ready for review March 16, 2026 14:26
@basmulder03 basmulder03 merged commit 6cb6bbb into renovate/major-major Mar 16, 2026
@basmulder03 basmulder03 deleted the copilot/sub-pr-21 branch March 16, 2026 14:26
basmulder03 added a commit that referenced this pull request Mar 16, 2026
* Update Major

* Fix build: deduplicate Vite to v8 via pnpm override (#22)

* Initial plan

* Fix build: add pnpm override to deduplicate vite to v8

Co-authored-by: basmulder03 <20653542+basmulder03@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: basmulder03 <20653542+basmulder03@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: basmulder03 <20653542+basmulder03@users.noreply.github.com>
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.

2 participants