-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Error on reload: ERROR Invariant Violation: Failed to call into JavaScript module method RCTEventEmitter.receiveEvent().. #42640
Comments
|
What do you mean with the "hot button" in the simulator? |
when I press "R" while in the application, the metro bundler reload is triggered |
I've tested this on RN Tester, and the problem doesn't happen. @skinnynpale are you able to create a reproducer of any sort? I suppose this could be related to some 3rd party library you have included. |
Okay, thank you! I'll try |
@skinnynpale, are you running into this issue in Bridgeless mode?
This code should never run in Bridgeless mode! I think you've stumbled onto an interesting bug. Looking forward to the reproducer! |
Research has shown that this error is triggered by createStackNavigator. We are thinking about switching to a native stack. |
I'm sorry, we don't have Bridgeless enabled, I thought it was enabled by default in the new architecture |
Nope it needs to be enabled separately in 0.73 |
@cortinico it caused by the react-native-screens with @react-navigation/bottom-tabs, you can reproduce this issue with below repro. |
Great, can we open an issue against |
sure. @cortinico please help to link it. i don't know which side (RN or RNScreens) cause this issue. |
Please create the issue there, and post it here afterwards |
i'm seeing this on android in my production app logs. did anyone had a chance to fix the issue on their side by any chance? |
I'm having the same issue on ios whenever I open the expo menu in the app |
Closing because of: |
Solution:
|
Create a pr? |
Description
if you reload the application from the simulator (using the hot button), we get the following error, if you reload the application from the metro bundler, then there is no such error
ERROR Invariant Violation: Failed to call into JavaScript module method RCTEventEmitter.receiveEvent(). Module has not been registered as callable. Bridgeless Mode: false. Registered callable JavaScript modules (n = 10): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, HMRClient, AppRegistry. 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., js engine: hermes
Steps to reproduce
if you reload the application from the simulator (using the hot button), we get the following error, if you reload the application from the metro bundler, then there is no such error
React Native Version
0.73.2
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer, TurboModule - The New Native Module System, JSI - Javascript Interface, Bridgeless - The New Initialization Flow, Codegen
Output of
npx react-native info
Stacktrace or Logs
Reproducer
--
Screenshots and Videos
The text was updated successfully, but these errors were encountered: