-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Closed
Labels
Description
Link to the code that reproduces this issue
To Reproduce
- clone project (
git clone https://github.com/ravinggenius/minecraft-tools.git minecraft-tools-react-19
) cd minecraft-tools-react-19
git checkout react-19-blocks-package-install
- install current dependencies (
npm ci
)
Current vs. Expected behavior
I used the Next upgrade codemod tonight (2024-11-01) to upgrade to Next 15, which installed React 19 as one of the steps. Now I cannot install any new package or upgrade any existing package. Even installing current dependencies in a fresh git checkout gives me an error:
$ npm ci
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"19.0.0-rc-02c0e824-20241028" from the root project
npm error peer react@"^18.2.0 || 19.0.0-rc-02c0e824-20241028" from [email protected]
npm error node_modules/next
npm error next@"15.0.2" from the root project
npm error 2 more (react-dom, styled-jsx)
npm error
npm error Could not resolve dependency:
npm error peer react@">= 16.8.0" from [email protected]
npm error node_modules/react-i18next
npm error react-i18next@"^15.0.2" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error peer react@">= 16.8.0" from [email protected]
npm error node_modules/react-i18next
npm error react-i18next@"^15.0.2" 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.
npm error
npm error
npm error For a full report see:
npm error /Users/ravinggenius/.npm/_logs/2024-11-02T03_18_49_365Z-eresolve-report.txt
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:26 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8122
Available memory (MB): 24576
Available CPU cores: 8
Binaries:
Node: 20.14.0
npm: 10.7.0
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 15.0.2 // Latest available version is detected (15.0.2).
eslint-config-next: 15.0.2
react: 19.0.0-rc-02c0e824-20241028
react-dom: 19.0.0-rc-02c0e824-20241028
typescript: 5.6.2
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Developer Experience
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
mohsenAKB