Loopback packages include an older core peer dependency, which causes installation failures

オープン
#11,901 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

2026年11月14日 から。

  • #11902 @abd1rahmane による — オープン

評価

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

調査の方向性

Start with packages/authentication/package.json and compare its peerDependencies entry for @loopback/core (^7.0.0) with its devDependencies entry (^8.0.0). Then check the same pair in the other packages under packages/. Reproduce the ERESOLVE by installing @loopback/core@^8.0.0 and then @loopback/authentication@^13.0.0 in a clean directory. Done when the peer ranges match the core version the packages are built against and that install succeeds without --legacy-peer-deps.

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

説明

bug
Describe the bug

Many of the current loopback packages include both a development and peer dependency, but with different versions:

Example: packages/authentication/package.json

"peerDependencies": {
  "@loopback/core": "^7.0.0"
},
"devDependencies": {
  "@loopback/core": "^8.0.0"
}

When installing both @loopback/core and one of the affected packages at the same time, npm will fail with an ERESOLVE error.

Isolated Example:

npm init
npm install @loopback/core@^8.0.0
   added 20 packages, and audited 21 packages in 4s
npm install @loopback/authentication@^13.0.0
   npm error code ERESOLVE
   npm error ERESOLVE unable to resolve dependency tree

Logs
C:\meh>npm install @loopback/authentication@^13.0.0
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: @loopback/[email protected]
npm error node_modules/@loopback/core
npm error   @loopback/core@"^8.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @loopback/core@"^7.0.0" from @loopback/[email protected]
npm error node_modules/@loopback/authentication
npm error   @loopback/authentication@"13.0.0" 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.
Additional information

No response

Reproduction

n/a

主要言語
TypeScript
スター
5.1k
フォーク
1.1k
平均マージ
1日 23時間
マージ済み PR(30日)
44

環境構築

はじめの一歩

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

loopbackio/loopback-next のほかの issue

loopbackio/loopback-next の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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