Skip to content

fix(website): pin react-dom to match react - #1508

Merged
dannyhw merged 1 commit into
mainfrom
dannyhw/fix-website-react-dom
Oct 22, 2026
Merged

dannyhw merged 1 commit into
mainfrom
dannyhw/fix-website-react-dom

Conversation

@dannyhw

@dannyhw dannyhw commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Since #1502, the website build fails in the Release workflow and on Vercel:

Incompatible React versions: The "react" and "react-dom" packages must have the exact same version.
  - react:      19.3.0
  - react-dom:  19.2.8

website didn't declare react/react-dom, so @rspress/core's peers resolved to whatever the workspace lockfile had. #1502 bumped the catalog's react to 19.3.0, but nothing pulled in a matching react-dom, so it stayed at 19.2.8.

This change:

  • adds react-dom: 19.3.0 to the default catalog next to react
  • declares react and react-dom as catalog: dependencies in website/package.json

In the lockfile, react-dom moves from 19.2.8 to 19.3.0 everywhere (the Expo testers' expo-router gets the same version).

Verified locally: pnpm install --frozen-lockfile and pnpm build pass (8/8 tasks, website SSG included).

The website relied on hoisted react/react-dom for @rspress/core's peers.
After the catalog moved react to 19.3.0, the lockfile still only had
react-dom 19.2.8, so SSG failed with React's version-mismatch check,
breaking the Release workflow and the Vercel deploy.

Add react-dom to the default catalog next to react and declare both in
website/package.json so they always resolve to the same version.
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
repack-website Ready Ready Preview Oct 22, 2026 8:41am UTC

Request Review

@changeset-bot

changeset-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b2f9028

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dannyhw
dannyhw merged commit 7e2b4cc into main Oct 22, 2026
10 checks passed
@dannyhw
dannyhw deleted the dannyhw/fix-website-react-dom branch October 22, 2026 08:43

This branch was successfully deployed

1 active deployment
Preview — b2f90289 Deployed Oct 22, 2026 by vercel[bot]
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.

1 participant