Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 26, 2025

  • Identify test failures and root cause
  • Downgrade React from 19.1.1 to 18.3.1 for azure-devops-ui compatibility
  • Downgrade React DOM from 19.1.1 to 18.3.1 for consistency
  • Update @testing-library/react if needed for React 18 compatibility
  • Update @types/react and @types/react-dom to match React 18
  • Run tests to verify compatibility fixes
  • Run linting to ensure no new issues
  • Run build to ensure compilation works

Root cause identified: The project was upgraded to React 19.1.1, but the [email protected] components only officially support React ^16.8.1. The ref handling changes in React 19 are incompatible with the azure-devops-ui components, causing test failures.

Minimal solution: Downgrade React to 18.3.1 (latest stable React 18) to maintain compatibility with existing azure-devops-ui components while keeping modern React features.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@sonarqubecloud
Copy link

Copilot AI requested a review from h2floh August 26, 2025 06:58
@h2floh h2floh closed this Oct 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.

2 participants