You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@justrach it is compatible, React 18 is still supported by next.js
In version 15, the App Router uses React 19 RC, and we've also introduced backwards compatibility for React 18 with the Pages Router based on community feedback. If you're using the Pages Router, this allows you to upgrade to React 19 when ready.
@justrach it is compatible, React 18 is still supported by next.js
In version 15, the App Router uses React 19 RC, and we've also introduced backwards compatibility for React 18 with the Pages Router based on community feedback. If you're using the Pages Router, this allows you to upgrade to React 19 when ready.
@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.
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: