Upgrading to 6.13.0 from 6.12.0 breaks the build

オープン
#1,953 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react-native
領域
mobile-dev

調査の方向性

6.12.0 から 6.13.0 にアップグレードし、yarn を実行して Metro のキャッシュをリセットし、Hermes を使用する React Native 0.66.4 で Android アプリを起動して、障害を再現します。まず、Metro が報告している HighlighterView の重複登録を追跡します。6.13.0 でアプリが正常に起動し、どちらの invariant violation も発生しなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
7.2k
フォーク
749
平均マージ
2日 4時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wix/react-native-ui-lib のほかの issue

wix/react-native-ui-lib の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。