Title
Dependency Conflict: next@13.5.8 incompatible with nextra@4.0.0 (requires next@>=14)
Description
There is a dependency conflict when attempting to install packages for the project due to nextra@4.0.0 requiring next@>=14, while the project currently specifies next@13.5.8. 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:
- 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: nextra-docs-template@0.0.1
npm error Found: next@13.5.8
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 nextra@4.0.0
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 nextra@4.0.0.
- Alternatively, if upgrading
next is not feasible, specify a compatible nextra version that supports next@13.5.8.
Environment
- Node.js version:
22.13.0
- npm version:
10.9.2
- Operating System:
windows 11 pro
Title
Dependency Conflict:
next@13.5.8incompatible withnextra@4.0.0(requiresnext@>=14)Description
There is a dependency conflict when attempting to install packages for the project due to
nextra@4.0.0requiringnext@>=14, while the project currently specifiesnext@13.5.8. This leads to anERESOLVEerror preventing dependency installation.Steps to Reproduce
package.jsondependencies:{ "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" } }Expected Behavior
Dependencies should resolve correctly, allowing the packages to install without errors.
Actual Behavior
The installation fails with the following error:
Possible Solution
nextversion in the project to>=14to meet the requirements ofnextra@4.0.0.nextis not feasible, specify a compatiblenextraversion that supportsnext@13.5.8.Environment
22.13.010.9.2windows 11 pro