React Native Fatal RCTBatchedBridge error on launch - react-native

When lauching the app it fails with the following fatal error:
TypeError: methods.forEach is not a function. (In 'methods.forEach', 'methods.forEach' is undefined)
This only happens in the iOS simulator. The app runs fine on a device.
The RN stack trace doesn't show much useful information:
Screenshot of error
Any suggestions would be hugely appreciated!

Related

React Native: Android - Google mlkit FaceDetection causing app crash with FATAL EXCEPTION

After configuring the Firebase dashboard and integrating everything into my React Native app, when launching the Android Emulator the app crashes and I get the following error:
FATAL EXCEPTION: create_react_context
Process: com.appName, PID: XXXX
java.lang.VerifyError: Verifier rejected class com.google.mlkit.vision.face.FaceDetection: com.google.mlkit.vision.face.FaceDetector com.google.mlkit.vision.face.FaceDetection.getClient() failed to verify: com.google.mlkit.vision.face.FaceDetector com.google.mlkit.vision.face.FaceDetection.getClient(): [0x10] can't resolve returned type 'Unresolved Reference: com.google.mlkit.vision.face.FaceDetector' or 'Unresolved Reference: com.google.mlkit.vision.face.internal.FaceDetectorImpl'
The iOS Simulator runs fine and I'm able to use MLKit tools seamlessly, so this leads me to believe I have configured the Android app incorrectly. Any ideas?

React native: doesn't show useful error stack when crashed

When my react-native app crashes in development mode in simulator, it used to show me useful error stack like which line in which file failed. But it started to give me errors like this after a recent upgrade.
Can anyone tell me how to let it show useful error stack messages? Thanks!

Native module cannot be null, but the app works fine

react-native run-ios successfully builds the project and the app is started at simulator, however, I got the error below, I tried to get more details in the Xcode log, I only got this:
[fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Native module cannot be null.
How can I debug this error? is it just a warning? I can see fatal in Xcode log.
If I press on Dismiss in simulator, the error below gone and the app seems to work fine..
Any idea?

App Release Crashes t is not a function

the debug mode working just fine and smooth. no any errors.
i spent more than 3 days but could not find a solution. please help and thanks in advance.
when it's about releasing the app from xcode the app crashes
package.json file
error in xcode console
Unhandled JS Exception: t is not a function.
*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: t is not a function.
there was a typo error in my store.js
it was such a nightmare to figure out what causing such crash.

SyntaxError: Attempted to redefine property 'marginTop'.

I have an error in my app when it's run in android emulator.
My app works perfectly in iOS, but when I tried to run in Android show this.
Why occurred this?