Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 28, 2025

This PR fixes the failing Dependabot PR #2628 that attempted to upgrade Vite from v5.4.18 to v7.0.6 but caused CI build failures.

Root Cause

The Dependabot PR only upgraded vite to v7.0.6 but left @vitejs/plugin-react at v4.3.3, which only supports Vite versions up to v6.x. This created a peer dependency mismatch that caused the build to fail with TypeScript compilation errors.

Solution

Updated @vitejs/plugin-react from v4.3.3 to v4.7.0, which supports Vite v7.x according to its peer dependencies specification:

"vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"

Changes Made

  • Upgraded @vitejs/plugin-react from ^4.3.3 to ^4.7.0
  • Kept vite at ^7.0.6 as intended by the original Dependabot PR
  • Updated package-lock.json to reflect the new dependency versions

Verification

All build and development commands now work correctly:

  • npm install - Clean dependency installation
  • npm run build - Production build succeeds
  • npx tsc --noEmit - TypeScript compilation passes
  • npm run dev - Development server starts successfully
  • npx prettier --check . - Linting passes

The frontend loads and renders correctly with Vite 7.0.6:

Frontend running with Vite 7.0.6

This minimal change ensures compatibility between the upgraded Vite version and its React plugin while maintaining all existing functionality.

Fixes #2629.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] Dependabot PR #2628 to upgrade vite failed CI Fix Vite 7.0.6 upgrade by updating @vitejs/plugin-react to v4.7.0 Jul 28, 2025
@Copilot Copilot AI requested a review from pamelafox July 28, 2025 16:40
Copilot finished work on behalf of pamelafox July 28, 2025 16:40
@pamelafox pamelafox marked this pull request as ready for review July 30, 2025 00:12
@pamelafox pamelafox merged commit 3688740 into main Jul 30, 2025
22 checks passed
Copilot AI added a commit that referenced this pull request Aug 1, 2025
…est failures

- Reverted vite from ^7.0.6 back to ^5.4.18 (pre-PR #2630 version)
- Reverted @vitejs/plugin-react from ^4.7.0 back to ^4.3.3 (pre-PR #2630 version)
- Regenerated package-lock.json with compatible dependencies
- Vite 5.4.18 supports Node.js ^18.0.0 || >=20.0.0 (compatible with 20.14+)
- Build and dev server verified to work correctly with reverted versions

Co-authored-by: pamelafox <[email protected]>
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.

Dependabot PR #2628 to upgrade vite failed CI
2 participants