Skip to content
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

docs: pin react version to 18 in Next.js 14 upgrade guide #74222

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

cseas
Copy link

@cseas cseas commented Dec 22, 2024

Improving Documentation

I was just upgrading from Next.js v13 to v14 following this guide:
https://nextjs.org/docs/app/building-your-application/upgrading/version-14

npm installation throws the below error:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.2.0" from [email protected]
npm error node_modules/next
npm error   next@"14.2.21" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

The react version for Next.js v14 should be pinned to react@18.

@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Dec 22, 2024
@ijjk
Copy link
Member

ijjk commented Dec 22, 2024

Allow CI Workflow Run

  • approve CI run for commit: 05c36fe

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants