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

オープン 初心者向け
#8,537 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Kamran92 がすでに取り組んでいます。

2026年5月18日 から。

  • #8538 @Kamran92 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
javascript
領域
build-system

調査の方向性

まず npm install で失敗を再現し、jspdf と jspdf-autotable のルート依存関係宣言を調べます。jspdf 4 をサポートする jspdf-autotable のリリースを確認し、依存関係の宣言を更新して、force や legacy-peer-deps を使わずにクリーンな npm install が完了することを確認します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
CSS
スター
8.3k
フォーク
1.2k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

primefaces/primereact のほかの issue

primefaces/primereact の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。