-
Notifications
You must be signed in to change notification settings - Fork 676
NEXTRA 4 | Dependency Conflict: [email protected] incompatible with [email protected] (requires next@>=14) #92
Copy link
Copy link
Open
Description
Title
Dependency Conflict: [email protected]
incompatible with [email protected]
(requires next@>=14
)
Description
There is a dependency conflict when attempting to install packages for the project due to [email protected]
requiring next@>=14
, while the project currently specifies [email protected]
. This leads to an ERESOLVE
error preventing dependency installation.
Steps to Reproduce
- clone the repo with the following
package.json
dependencies:{ "dependencies": { "next": "^13.0.6", "nextra": "latest", "nextra-theme-docs": "latest", "react": "^18.2.0", "react-dom": "^18.2.0" }, "devDependencies": { "@types/node": "18.11.10", "typescript": "^4.9.3" } }
- Run the command:
npm install
- Observe the error output.
Expected Behavior
Dependencies should resolve correctly, allowing the packages to install without errors.
Actual Behavior
The installation fails with the following error:
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/next
npm error next@"^13.0.6" from the root project
npm error
npm error Could not resolve dependency:
npm error peer next@">=14" from [email protected]
npm error node_modules/nextra
npm error nextra@"latest" from the root project
Possible Solution
- Update the
next
version in the project to>=14
to meet the requirements of[email protected]
. - Alternatively, if upgrading
next
is not feasible, specify a compatiblenextra
version that supports[email protected]
.
Environment
- Node.js version:
22.13.0
- npm version:
10.9.2
- Operating System:
windows 11 pro
Metadata
Metadata
Assignees
Labels
No labels