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

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

Open
suprunchuk opened this issue Jan 14, 2025 · 0 comments

Comments

@suprunchuk
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant