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

Offen
#11,901 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@abd1rahmane arbeitet bereits daran.

Seit 14.11.2026.

  • #11902 von @abd1rahmane — offen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
66/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
nodejs, typescript
Bereich
build-system

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
5.1k
Forks
1.1k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
44

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus loopbackio/loopback-next

Alle Issues in loopbackio/loopback-next

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.