[Error] [iOS] [Invariant Violation] new NativeEventEmitter()
requires a non-null argument.
#47900
Labels
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Type: Too Old Version
Description
I have updated my project from 0.68 to 0.70.0 since than i have started facing issues with iOS as soon as my app builds completed my iOS app got stuck on splash screen with this error
Invariant Violation:
new NativeEventEmitter()
requires a non-null argument.Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
Running perfectly fine for Android
My Package.json
My Appdelegate.m
Steps to reproduce
1.Updated app from 68 ==> 70
2.Did configurations changes according -->
3.Did npx react-native-clean-project
4.Did yarn pod
5.Build iOS app and it got stuck with following error
React Native Version
0.70.0
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
NA
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: