Skip to content

Dependency conflict between jspdf v4 and jspdf-autotable during npm install #8537

@Kamran92

Description

@Kamran92

Bug Description

There is a dependency conflict when installing the PrimeReact repository locally.

Current behavior:

After cloning the repository and running:

npm install

npm fails with a dependency resolution error related to jspdf and jspdf-autotable.

Error:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: primereact@10.9.8
npm error Found: jspdf@4.0.0
npm error node_modules/jspdf
npm error   jspdf@"4.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer jspdf@"^2 || ^3" from jspdf-autotable@5.0.2
npm error node_modules/jspdf-autotable
npm error   jspdf-autotable@"5.0.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken)
npm error dependency resolution.
npm error
npm error For a full report see:
npm error /home/loki/.npm/_logs/2026-05-18T13_07_46_040Z-eresolve-report.txt
npm error A complete log of this run can be found in:
npm error /home/loki/.npm/_logs/2026-05-18T13_07_46_040Z-debug-0.log

Expected behavior:

The repository should install successfully with:

npm install

without requiring --force or --legacy-peer-deps.

Environment:

  • PrimeReact: 10.9.8
  • jspdf: 4.x
  • npm: 10.9.2
  • Node.js: v23.7.0

Steps to reproduce:

  1. Clone the PrimeReact repository
  2. Navigate to the project directory
  3. Run:
npm install
  1. Observe dependency resolution failure

Suggested fix:

Update the jspdf-autotable dependency to a version compatible with jspdf v4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesIssue or pull request is related to a dependency package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions