Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#8,537 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@Kamran92 ci sta già lavorando.

Dal 18/5/2026.

  • #8538 di @Kamran92 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
javascript
Ambito
build-system

Direzione di ricerca

Inizia riproducendo il problema con npm install e ispezionando le dichiarazioni delle dipendenze root per jspdf e jspdf-autotable. Verifica quale versione di jspdf-autotable supporta jspdf 4, aggiorna la dichiarazione della dipendenza e verifica che un’installazione npm pulita venga completata senza force né legacy-peer-deps.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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: [email protected]
npm error Found: [email protected]
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 [email protected]
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.

Lingua principale
CSS
Stelle
8.3k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di primefaces/primereact

Tutte le issue di primefaces/primereact

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.