react / react/react-native

Crash on startup after upgrading to React Native 0.82.1 – TypeError: Cannot read property 'prototype' of undefined

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

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

Needs: Attention Needs: Repro
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

After upgrading my existing React Native project to 0.82.1, the application crashes immediately on startup on Android with a red screen error:

[runtime not ready]: TypeError: Cannot read property 'prototype' of undefined

Steps to reproduce

Upgrade an existing React Native project to 0.82.1

Run the app using:

yarn android

App launches
App crashes immediately with a red screen

React Native Version

0.82.1

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info
System:
  OS: macOS 14.x
  CPU: Apple Silicon
  Memory: XX GB
  Shell: zsh

Binaries:
  Node: 22.x
  Yarn: 1.22.x
  npm: 10.x

SDKs:
  Android SDK: Installed
Stacktrace or Logs
[runtime not ready]: TypeError: Cannot read property 'prototype' of undefined
stack:
anonymous@111327:104
loadModuleImplementation@275:13
guardedLoadModule@182:37
metroRequire@96:91
anonymous@148097:30
loadModuleImplementation@275:13
guardedLoadModule@182:37
metroRequire@96:91
anonymous@172102:48
loadModuleImplementation@275:13
guardedLoadModule@182:37
metroRequire@96:91
global@345973:3
MANDATORY Reproducer

https://github.com/facebook/react-native/issues

Screenshots and Videos
Image

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、Android 上で yarn android を実行し、0.82.1 にアップグレードした既存の React Native プロジェクトでクラッシュを再現します。提供された起動時のスタックトレースと実行時エラーを確認します。互換性の問題を特定し、アプリケーションが赤い画面の TypeError なしで起動することを確認できれば完了です。

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

評価

技術スタック
android, react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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