-
Notifications
You must be signed in to change notification settings - Fork 24k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.RuntimeException: com.facebook.react.devsupport.JSException: Cannot read property 'setGlobalHandler' of undefined #44506
Comments
|
0.74.1 also have this question. |
import 'react';
import 'react-native';
if (!__DEV__) {
console = {
info: () => {},
log: () => {},
warn: () => {},
error: () => {},
time: () => {},
timeEnd: () => {},
};
} This is my common.js. |
My app first load common.jsbundle,then load index.android.bundle.Question happen in first load. |
I found It's my problem.Chnage metro.config.js to follow is ok.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
To improve the performance of my React Native app, I modularized the app code into separate bundles, including a 'common' and an 'index' bundle. However, starting from version 0.73.6, when my Android app loads the 'common' bundle, the following error occurs:(But I found 0.72.5 don't has this question.)
demo@0.72.5
demo@0.73.6
Steps to reproduce
React Native Version
0.73.6
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/Hao-yiwen/reactNative-study/tree/master/splitRn_0736
Screenshots and Videos
The text was updated successfully, but these errors were encountered: