-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Labels
status:newNew issue, not reviewed by the team yet.New issue, not reviewed by the team yet.type:bugA bug report.A bug report.
Description
Describe the bug
DESCRIPTION
This behavior only occurs when the module-federation/enhanced package is enabled. It seems that the library executes code before the React Native runtime finishes initializing the global JS environment. As a result, console is accessed too early, causing the [runtime not ready] exception and the crash on Android.
ERROR
Release mode error: com.facebook.react.runtime.JavaScript (12): "NSException: Unhandled JS Exception: [runtime not ready]: ReferenceError: Property 'console' doesn't exist
System Info
Environment
React Native: [0.80.2]
@react-native-community/cli: [18.0.0]
Node: [20]
Android Studio: [Android Studio Iguana]
Gradle: [8.6]
JDK: [Temurin 17]
Device/Emulator: [Pixel 7 emulator API 34]
Build type: [Release]
OS: [Windows 11]Re.Pack Version
5.2.3
Reproduction
https://github.com/drbf17/Host-SuperApp/tree/poc/module-federation-0.19.1
Steps to reproduce
run release mode for test
logcat attachment
crash_log.txt
drbf17, joaopedronery, yantavares, jpcm2, sbatalha and 4 more
Metadata
Metadata
Assignees
Labels
status:newNew issue, not reviewed by the team yet.New issue, not reviewed by the team yet.type:bugA bug report.A bug report.