Skip to content

Add React 19 peer dep support#292

Open
cole-robertson wants to merge 1 commit intorichardgill:mainfrom
cole-robertson:main
Open

Add React 19 peer dep support#292
cole-robertson wants to merge 1 commit intorichardgill:mainfrom
cole-robertson:main

Conversation

@cole-robertson
Copy link

Why

If a consumer is on React 19, then they get an error about the React 18 peer dependency constraint.

What

This PR enables React 19 peer dep support for all llm-ui subpackages.

Testing

This seems to have no issues from my testing with React 19 compatibility.

Closes #288

@vercel
Copy link

vercel bot commented Jun 12, 2025

@cole-robertson is attempting to deploy a commit to the llm-ui Team on Vercel.

A member of the Team first needs to authorize it.

},
"peerDependencies": {
"react": "^18.0.0"
"react": ">=18.0.0 <20.0.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be more explicit to use ^19.0.0? Consumers still could use older versions if they need to stay on React 18.

@saliftankoano
Copy link

Yes please merge this as soon as possible. I'm literally running into this problem with React 19. Thank you 🙏

@coezbek
Copy link

coezbek commented Jul 10, 2025

In your package.json add:

  "overrides": {
    "@llm-ui/react": {
      "react": "^19.1"
    },
    "@llm-ui/markdown": {
      "react": "^19.1"
    },
    "@llm-ui/code": {
      "react": "^19.1"
    }
  }

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.

ReactJS 19 support?

4 participants