Skip to content

Fix Dependabot react-router-dom v7 upgrade after merging main branch updates #2644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 28, 2025

This PR fixes the failed Dependabot PR #2511 that attempted to upgrade react-router-dom from 6.28.0 to 7.5.2.

After merging from main to incorporate recent MSAL package downgrades (#2632) and Vite downgrades (#2630), the react-router-dom v7 upgrade is still needed and working correctly. The existing codebase already follows React Router v7 patterns with proper Component exports for lazy-loaded routes.

Changes made:

  • Upgraded react-router-dom from ^6.28.0 to ^7.5.2 (resolves to v7.7.1)
  • Merged latest changes from main including MSAL and Vite downgrades
  • Verified compatibility with existing routing structure using createHashRouter
  • Confirmed build, TypeScript compilation, and dev server functionality

Testing:

  • ✅ Frontend builds successfully with npm run build
  • ✅ TypeScript compilation passes with npx tsc --noEmit
  • ✅ Dev server starts correctly with npm run dev
  • ✅ All existing routing patterns work with React Router v7

Fixes #2643.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: pamelafox <297042+pamelafox@users.noreply.github.com>
@pamelafox
Copy link
Collaborator

@copilot Merge from main and see if this change is still needed

Copy link
Contributor Author

Copilot AI commented Jul 30, 2025

@copilot Merge from main and see if this change is still needed

Merged from main (commit 60ce3a9). The react-router-dom v7 upgrade is still needed and working correctly. The merge incorporated MSAL package downgrades from main while keeping the react-router upgrade. Build, TypeScript compilation, and dev server all work successfully with react-router-dom v7.7.1.

@Copilot Copilot AI changed the title [WIP] Dependabot #2511 to upgrade react-router failed CI Fix Dependabot react-router-dom v7 upgrade after merging main branch updates Jul 30, 2025
Copilot finished work on behalf of pamelafox July 30, 2025 03:40
@pamelafox pamelafox closed this Aug 1, 2025
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 #2511 to upgrade react-router failed CI
2 participants