Investigate removing `legacy-peer-deps=true` from `web/.npmrc`

Aperta
#142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
nextjs, react, typescript

Direzione di ricerca

The flag lives in web/.npmrc; the dependency set to check is in web/package.json and web/package-lock.json. Remove the line locally and run npm install to capture each peer-dependency conflict it reports. Done means npm ci, npm run lint and npm run build pass without the flag, or the PR explains each remaining conflict.

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

Descrizione

difficulty: intermediate dx help wanted web

Difficulty: Intermediate

Problem

web/.npmrc sets legacy-peer-deps=true, which tells npm to ignore peer-dependency conflicts. It was probably added to get past an early install error, and it can hide real incompatibilities (for example between React 19, Next.js and the Sentry or Freighter packages).

Why it matters

Hidden peer conflicts show up later as confusing runtime or upgrade problems.

Scope of work

Remove the flag locally, run npm install, and record which conflicts appear. Fix them (version adjustments, overrides) or document precisely why the flag must stay.

Expected outcome

Either the flag is gone and installs are clean, or a comment explains each conflict that still requires it.

Acceptance criteria

  • npm ci, npm run lint and npm run build pass without the flag, or the PR documents why not.
  • Findings are recorded in the PR description.
  • CI is green.

Relevant files

  • web/.npmrc, web/package.json, web/package-lock.json

Dependencies

Related to #10 (dependency automation); PRs touching package.json may conflict.

Maintainer discussion needed?

No.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
54m
PR unite (30g)
6

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 Yormee-103/PayLoop

Tutte le issue di Yormee-103/PayLoop

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.