Skip to content

Support React 19 for Next 15 and React 19 upgrade in consumer apps #5552

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vietanhtran16
Copy link
Contributor

@vietanhtran16 vietanhtran16 commented Mar 3, 2025

Important: Request PR reviews on Slack

Please reach out to the design system team on Slack in #prod_design_system for PR reviews. GitHub notifications (e.g. from tagging a person) are not actively monitored.

Why

To prepare for our Nextjs 15 and React 19 upgrade, I created this PR to test it out. My findings has been documented here

What

  • Upgrade to react and react-dom 19 for devDependencies
  • Allow react 19 and react dom 19 as peer dependencies
  • Released as canary and tested in conversations-ui

@vietanhtran16 vietanhtran16 requested a review from a team as a code owner March 3, 2025 02:43
Copy link

changeset-bot bot commented Mar 3, 2025

🦋 Changeset detected

Latest commit: b98a136

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@kaizen/components Minor
@kaizen/design-tokens Minor
@kaizen/tailwind Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

github-actions bot commented Mar 3, 2025

✨ Here is your branch preview! ✨

Last updated for commit b98a136: chore: Ignore peerDep warnings for older packages (#5700)

@vietanhtran16 vietanhtran16 changed the title Viet: Spike react 19 upgrade for next 15 Support React 19 for Next 15 and React 19 upgrade in consumer apps Mar 5, 2025
@vietanhtran16
Copy link
Contributor Author

A bunch of tests are failing. I reckon it might be because of mismatch react version from possibly storybook? I also noticed react and react dom as dependency in the root package.json - are they needed there?

@ryanseddon ryanseddon force-pushed the viet/react-19-peer-deps branch 2 times, most recently from 79c5067 to 6303faf Compare April 14, 2025 06:09
@ryanseddon ryanseddon force-pushed the viet/react-19-peer-deps branch from 7dd6d47 to 7a6805f Compare April 15, 2025 05:58
* chore: Ignore peerDep warnings for older packages

Target specific packages so as not to ignore valid warnings we can
ignore

* chore: add react popper

* chore: add popper core

* chore: add changeset and order packages
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