Upgrading to 6.13.0 from 6.12.0 breaks the build

Aperta
#1,953 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
react-native
Ambito
mobile-dev

Direzione di ricerca

Riproduci il problema eseguendo l’upgrade dalla versione 6.12.0 alla 6.13.0, eseguendo yarn, reimpostando la cache di Metro e avviando l’app Android su React Native 0.66.4 con Hermes. Inizia tracciando la registrazione duplicata di HighlighterView segnalata da Metro. Il lavoro è completato quando l’app si avvia correttamente su 6.13.0 senza nessuna delle due violazioni di invariant.

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

Descrizione

bug

Description

I just upgraded from 6.12.0 to 6.13.0 and getting the following exception from Metro on launch:

ERROR Invariant Violation: Tried to register two views with the same name HighlighterView, js engine: hermes
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.

Related to
  • Components
  • Demo
  • Docs
  • Typings
Steps to reproduce
  1. Update the package version in package.json to 6.13.0
  2. Run yarn
  3. Run react-native start --reset-cache
  4. Launch App.
Expected behavior

Bundle loads successfully and App launches as usual

Actual behavior

The following error post compilation:

ERROR Invariant Violation: Tried to register two views with the same name HighlighterView, js engine: hermes
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.

More Info

The error goes away when I roll-back to 6.12.0

The project is on React Native 0.66.4 (Non Expo)

Code snippet


Screenshots/Video
Environment
  • React Native:
  • React Native UI Lib:
Affected platforms
  • [ X ] Android
  • iOS
  • Web
Lingua principale
TypeScript
Stelle
7.2k
Fork
749
Merge medio
29m
PR unite (30g)
1

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 wix/react-native-ui-lib

Tutte le issue di wix/react-native-ui-lib

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.