Loopback packages include an older core peer dependency, which causes installation failures
Maintainer antworten meist innerhalb von 1 Tag
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
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
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus loopbackio/loopback-next
-
lb4 openapi generator produces invalid TypeScript code when OpenAPI parameters contain hyphensEvtl. vergeben @aaqilniz hat das vor 973 Tagen übernommen. Offenbug CLI
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
loopbackio/loopback-next#11887 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Avoid constructor source scanning for classes without a base class in @loopback/contextEvtl. vergeben @zuhairkhalid229 hat das vor 14 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
loopbackio/loopback-next#11878 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Docs good first issue help wanted
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 68/100
loopbackio/loopback-next#683 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Model discovery should populate `jsonSchema.maxLength` alongside `length` to support strict-mode validationEvtl. vergeben @officialasishkumar hat das vor 8 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
loopbackio/loopback-next#11869 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
loopbackio/loopback-next#11726 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in loopbackio/loopback-next
Ähnliche Issues
-
truapi-release
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
paritytech/product-sdk#529 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Environments table lists page size 5 after 30Evtl. vergeben @raus7n hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
litmuschaos/litmus#5743 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
desktop grp:admin-donors type:graphics-bug ui-admin
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
milind-soni/OpenMausBot#6730 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Status: Triage Type: Bug / Error
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
mermaid-js/mermaid-v13#1059 ·
Maintainer antworten meist innerhalb von 1 Tag