Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 4, 2025

Dependabot only upgraded react-dom to v19, leaving react on v18, causing version mismatch failures. React 19 requires all packages in the ecosystem to be upgraded together.

Package upgrades

  • react: 18.3.1 → 19.2.0
  • @types/react: 18.3.12 → 19.2.2
  • @fluentui/react: 8.112.5 → 8.125.0
  • @fluentui/react-components: 9.56.2 → 9.72.4
  • @react-spring/web: 9.7.5 → 10.0.3

TypeScript fixes for React 19

React 19 removes the global JSX namespace. Changed explicit return types to rely on inference:

// Before (React 18)
export function Component(): JSX.Element {
  return <div>...</div>;
}

// After (React 19)
export function Component() {
  return <div>...</div>;
}

Updated useRef typing syntax:

// Before
const ref: RefObject<HTMLDivElement> = useRef(null);

// After
const ref = useRef<HTMLDivElement>(null);

Configuration

Added legacy-peer-deps=true to .npmrc for react-helmet-async which doesn't declare React 19 support but functions correctly with it.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Bump react-dom and @types/react-dom dependencies Complete React 19 upgrade with dependency and type fixes Nov 4, 2025
Copilot AI requested a review from pamelafox November 4, 2025 19:22
Copilot finished work on behalf of pamelafox November 4, 2025 19:22
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