Skip to content

[BUG] ERESOLVE with transitive peer dependencies #10054

Open

Description

@MatthiasBrehmer

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

This is not just a request to bump a dependency for a CVE

  • This is not solely a request to bump a dependency for a CVE

Current Behavior

When running npm i primeng@18.0.2, in an empty directory, I get this:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: undefined@undefined
npm error Found: @angular/core@18.2.14
npm error node_modules/@angular/core
npm error   peer @angular/core@"^17.0.0 || ^18.0.0" from primeng@18.0.2
npm error   node_modules/primeng
npm error     primeng@"18.0.2" from the root project
npm error   peer @angular/core@"18.2.14" from @angular/animations@18.2.14
npm error   node_modules/@angular/animations
npm error     peer @angular/animations@"^17.0.0 || ^18.0.0" from primeng@18.0.2
npm error     node_modules/primeng
npm error       primeng@"18.0.2" from the root project
npm error   1 more (@angular/cdk)
npm error
npm error Could not resolve dependency:
npm error peer @angular/core@"19.2.25" from @angular/common@19.2.25
npm error node_modules/@angular/common
npm error   peer @angular/common@"^18.0.0 || ^19.0.0" from @angular/cdk@18.2.14
npm error   node_modules/@angular/cdk
npm error     peer @angular/cdk@"^17.0.0 || ^18.0.0" from primeng@18.0.2
npm error     node_modules/primeng
npm error       primeng@"18.0.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/brm/.npm/_logs/2026-09-30T13_40_37_575Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/brm/.npm/_logs/2026-09-30T13_40_37_575Z-debug-0.log

Expected Behavior

No error.

Steps To Reproduce

  • create an empty directory
  • run npm i primeng@18.0.2

Environment

  • npm: 12.1.0
  • Node.js: 26.3.0
  • OS Name: Linux 6.18.33.2-microsoft-standard-WSL2
  • System Model Name:
  • npm config:
min-release-age = 5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions