rapid-dawn-42563
05/19/2023, 9:58 AMError: Failed to load Rudderlabs native module., js engine: hermes
Error: 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., js engine: hermes
Stack:
@rudderstack/rudder-sdk-react-native: “1.5.1”, // but latest also not working, I have checked 1.6.x too.
“react”: “18.1.0”,
“react-native”: “0.70.8”,millions-activity-52391
05/19/2023, 9:58 AMkind-carpenter-27609
05/19/2023, 9:59 AMrapid-dawn-42563
05/19/2023, 10:00 AMrapid-dawn-42563
05/19/2023, 10:00 AMkind-carpenter-27609
05/19/2023, 10:01 AMrapid-dawn-42563
05/19/2023, 10:01 AMkind-carpenter-27609
05/19/2023, 10:01 AMandroid
, ios
folders in the root of your app right ?rapid-dawn-42563
05/19/2023, 10:02 AMrapid-dawn-42563
05/19/2023, 10:02 AMkind-carpenter-27609
05/19/2023, 10:02 AMpod install
from the `ios`folder after installing the package ?rapid-dawn-42563
05/19/2023, 10:02 AMrapid-dawn-42563
05/19/2023, 10:03 AMkind-carpenter-27609
05/19/2023, 10:03 AMkind-carpenter-27609
05/19/2023, 10:04 AMRudder
downloaded already ?
You can check iOS/pods
folder (or) iOS/podfile.lock
to verify thisrapid-dawn-42563
05/19/2023, 10:06 AMkind-carpenter-27609
05/19/2023, 10:06 AMkind-carpenter-27609
05/19/2023, 10:07 AMrapid-dawn-42563
05/19/2023, 10:10 AMcalm-yak-10773
05/19/2023, 11:05 AMnpx react-native-clean-project
• Delete the node_modules
directory and remove the package-lock.json
file.
• Then try installing everything again.
• Create a new React-Native sample project and then install our React-Native SDK in the that project and check if it throws the same error.
Could you please answer the following questions:
1. Steps to reproduce this issue?
2. A minimal viable example React-Native project that can reproduce the error, or, a GitHub repository link to the project where we can try installing our React-Native SDK and observe the error.
3. If you remove the our React-Native SDK then everything works fine or not?
Could this be related to the React-Native version or the Segment package I unlinked recently?
the project is very extensive, could it be a conflict with other libraries?Currently, we cannot provide a definitive answer. In order to investigate the issue from our side, we would need a minimal viable example React-Native project where we can reproduce the error and conduct further analysis.
rapid-dawn-42563
05/19/2023, 11:15 AMnode_modules
was cleared by me earlier as well as ios/Pods
I’ll try to clone the project elsewhere and maybe that will help.
Unfortunately, putting up a new project is not in my time range. Thank you for your time then.rapid-dawn-42563
05/19/2023, 11:55 AMcalm-yak-10773
05/19/2023, 11:57 AMrapid-dawn-42563
05/19/2023, 11:59 AM