Skip to content

NEXTRA 4 | Dependency Conflict: [email protected] incompatible with [email protected] (requires next@>=14) #92

@suprunchuk

Description

@suprunchuk

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

  1. 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"
      }
    }
  2. Run the command:
    npm install
  3. 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

  1. Update the next version in the project to >=14 to meet the requirements of [email protected].
  2. Alternatively, if upgrading next is not feasible, specify a compatible nextra 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions