-
-
Notifications
You must be signed in to change notification settings - Fork 893
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
Peer Dependency Issue: React-markdown not compatible with Next.js 15 (React 19 RC) #871
Comments
@justrach it is compatible, React 18 is still supported by next.js
|
React 19 support will be considered here when it is GA. |
@ChristianMurphy That is not the case for the App router (the main/default way of using nextjs). As it says in the quote, React 18 is only supported in the Pages router. |
@j2ghz you can nudge the next team to maintain support in app router as well. For react-markdown
|
React 19 is GA now since Dec 5 🚀 |
@Akuukis yes, React 19 is planned. |
I think you meant to mention @Akuukis. Now that it's GA could the issue be reopened so it's clear it's up for grabs or if there's any updates? (or a new issue of something, so people can find it more easily) |
I did, adjusted
A new issue would be better, we won't support React 19 RC, only GA. |
I created a new issue for React 19 support here: #877 |
Initial checklist
Affected packages and versions
eact-markdown: 9.0.1 react: 19.0.0-rc-69d4b800-20241021 next: 15
Link to runnable example
No response
Steps to reproduce
Create minimal reproduction
npx create-next-app@latest my-app --use-npm
cd my-app
npm install react-markdown
Steps to reproduce
Create a new Next.js 15 project
Try to install react-markdown
Observe the following error:
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"19.0.0-rc-69d4b800-20241021" from the root project
npm error Could not resolve dependency:
npm error peer react@">=18" from [email protected]
npm error node_modules/react-markdown
npm error react-markdown@"^9.0.1" from the root project
Expected behavior
react-markdown should install successfully with React 19 RC, as it's a newer version than the specified peer dependency requirement of >=18.
Actual behavior
Installation fails due to peer dependency constraints not recognizing React 19 RC as a valid version.
Affected runtime and version
Node: 20.11.0 npm: 10.2.4
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
Vite, Next.js
The text was updated successfully, but these errors were encountered: