fix: migrate react-markdown 8.0.7 to 9.0.3 to resolve React compatibi…#2614
Closed
prassamin wants to merge 1 commit intoGetStream:masterfrom
Closed
fix: migrate react-markdown 8.0.7 to 9.0.3 to resolve React compatibi…#2614prassamin wants to merge 1 commit intoGetStream:masterfrom
prassamin wants to merge 1 commit intoGetStream:masterfrom
Conversation
Contributor
|
@prassamin this PR does not test the impacts it introduces. At the moment we do not plan to upgrade react-markdown. See this PR: #2461 Is there something that prevents you from upgrading on your side? |
Author
|
@MartinCupela The issue I’m facing occurs specifically during the build process of my Next.js project. It throws errors related to JSX and TypeScript compatibility |
Author
Contributor
|
@prassamin could you please follow the this recommendation to unblock you? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Pull Request: Upgrade
react-markdowninstream-chat-react🎯 Goal
The goal of this change is to upgrade the
react-markdowndependency from version v8.0.7 to v9.0.3 in thestream-chat-reactpackage to resolve compatibility issues with modern React versions.Problem Description
The
stream-chat-reactpackage currently uses an outdated version of thereact-markdownlibrary (v8.0.7). This version causes compatibility issues with modern React projects, including React 19 and Next.js, resulting in:Cannot find namespace "JSX"during builds.Solution
To resolve these issues, this PR updates all instances of
react-markdowninstream-chat-reactto use version v9.0.3. The update also ensures that:react-markdowncontinue to work as expected.Changes Summary
react-markdown@8.0.7withreact-markdown@9.0.3.react-markdownthroughout thestream-chat-reactcodebase.Submission Details
react-markdownhas been verified to function correctly.Thank you for reviewing this pull request!