The @react-native-harness/metro patch hasn't been applied since the monorepo move

Aperta Adatta ai principianti
#376 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, react-native, typescript

Direzione di ricerca

Inizia dal package.json nella root e da patches/@react-native-harness+metro+1.0.0-alpha.23.patch; poi ispeziona example/package.json, il suo postinstall e gli script Harness (pnpm harness:ios, pnpm harness:android) per vedere se withRnHarness viene esercitato. Esegui un comando Harness per verificare se la patch è ancora necessaria. Completato significa che o la patch viene applicata tramite patchedDependencies nella root con patch-package rimosso, oppure vengono eliminati sia la patch sia la configurazione di patch-package.

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

Descrizione

patches/@react-native-harness+metro+1.0.0-alpha.23.patch comments out blockList: undefined in withRnHarness, with the note "This is needed for the example app to work." It came in with Harness in #31, when the example app was the repository root. #110 then moved the app to example/ and the patch to the root patches/. Since then, the example's postinstall (patch-package) runs from example/ and finds no patches there ("No patch files found"), so the patch is never applied.

The example app's own Metro config doesn't use withRnHarness, and the app builds and runs without the patch. So it can only matter for the Harness test runs (pnpm harness:ios, pnpm harness:android), which CI doesn't run. There are two ways to resolve it:

  • If those runs still need the patch, apply it the pnpm way, with patchedDependencies in the root package.json, and drop patch-package.
  • If they don't, delete the patch and the patch-package setup.
Lingua principale
TypeScript
Stelle
864
Fork
51
Merge medio
2g 2h
PR unite (30g)
10

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 callstackincubator/voltra

Tutte le issue di callstackincubator/voltra

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.