Skip to content

Pin react and react-dom to one version and bump them together - #1715

Merged
Muizzkolapo merged 1 commit into
mainfrom
docs/pin-react-versions
Nov 8, 2026
Merged

Muizzkolapo merged 1 commit into
mainfrom
docs/pin-react-versions

Conversation

@Muizzkolapo

Copy link
Copy Markdown
Owner

Closes #1714.

Summary

  • Deploy Docs failed on every commit to main with Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Dependabot bumped react to 19.3.1 on its own (Bump react from 19.3.0 to 19.3.1 in /docs.agent-actions #1576) and left react-dom at 19.3.0.
  • docs.agent-actions/package.json pins both to 19.3.1 exactly, and package-lock.json resolves react-dom 19.3.1 (integrity matches npm view react-dom@19.3.1 dist.integrity). The lockfile diff is only those entries.
  • .github/dependabot.yml groups react and react-dom for the docs npm updates, so a later bump moves both in one pull request.

Verification

  • In docs.agent-actions/, npm ci && npm run build (the Deploy Docs steps), on this branch: [SUCCESS] Generated static files in "build".
  • The same commands on main's package.json and lockfile: [ERROR] Error: Unable to build website for locale en. with [cause]: Error: Incompatible React versions. That is the error in the issue.
  • .github/dependabot.yml parses as YAML.

Dependabot bumped react to 19.3.1 on its own and left react-dom at
19.3.0. The docs build refuses mismatched React versions, so Deploy
Docs failed on every commit to main. Pin both to 19.3.1 exactly, and
group them in the Dependabot config so a later bump moves both in one
pull request.
@Muizzkolapo
Muizzkolapo merged commit b658f86 into main Nov 8, 2026
5 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 8, 2026
@Muizzkolapo
Muizzkolapo deleted the docs/pin-react-versions branch November 8, 2026 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy Docs fails on every main commit: react and react-dom versions differ

1 participant