Skip to content

Conversation

@rebeccaalpert
Copy link
Member

No description provided.

@rebeccaalpert rebeccaalpert linked an issue Aug 13, 2025 that may be closed by this pull request
@patternfly-build
Copy link

patternfly-build commented Aug 13, 2025

README.md Outdated
import '@patternfly/chatbot/dist/css/main.css';
```

If you are using React 17, ChatBot currently has a dependency on [react-markdown](https://github.com/remarkjs/react-markdown) that relies on React 18 and 19. There is an older version of react-markdown that supports 17, but it does not have support for 19. You should be able to add `"react"` and `"react-dom"` of the appropriate version to the `overrides` section of your `package.json` file if you need to use ChatBot with 17.
Copy link
Contributor

Choose a reason for hiding this comment

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

would they also need to use an override for the react 17 compatible version of react-markdown?

Copy link
Member Author

Choose a reason for hiding this comment

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

Andy didn't mention it, and he's out on PTO. I can call out the specific version in case you think that's valuable.

@rebeccaalpert
Copy link
Member Author

rebeccaalpert commented Aug 21, 2025

Able to get past install issue with this change - also fixed an instance of useId that won't work with sub-18 versions. Will need to test further to make sure ChatBot isn't 100% broken on 17, but it'll be easier to do that once I have a pre-release I can pull from.

@nicolethoen nicolethoen merged commit cea92a5 into patternfly:main Aug 21, 2025
7 checks passed
@github-actions
Copy link

🎉 This PR is included in version 6.4.0-prerelease.14 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with React 17 support

4 participants