Bug Description
There is a dependency conflict when installing the PrimeReact repository locally.
Current behavior:
After cloning the repository and running:
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:
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:
- Clone the PrimeReact repository
- Navigate to the project directory
- Run:
- Observe dependency resolution failure
Suggested fix:
Update the jspdf-autotable dependency to a version compatible with jspdf v4.
Bug Description
There is a dependency conflict when installing the PrimeReact repository locally.
Current behavior:
After cloning the repository and running:
npm fails with a dependency resolution error related to
jspdfandjspdf-autotable.Error:
Expected behavior:
The repository should install successfully with:
without requiring
--forceor--legacy-peer-deps.Environment:
Steps to reproduce:
Suggested fix:
Update the
jspdf-autotabledependency to a version compatible withjspdf v4.