Hi, I have issue with setup react native SDK. I fo...
# support
r
Hi, I have issue with setup react native SDK. I followed the documentation and i get the following problem. Have you encountered anything like this? Could this be related to the React-Native version or the Segment package I unlinked recently?
Copy code
Error: 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”,
1
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
k
Hey @rapid-dawn-42563, Are you seeing this issue on iOS platform ?
r
Hey, both, android and ios, immediately after starting the application on the device/emulator
for ex. ios emulator
k
Is your RN app based on expo ?
r
long ago, now is Rn CLI
k
so you do have
android
,
ios
folders in the root of your app right ?
r
Yes, the app is several years old
the project is very extensive, could it be a conflict with other libraries?
k
did you do
pod install
from the `ios`folder after installing the package ?
r
yes
image.png
k
CC <!subteam^S04QT1G74Q3|@sdk-team>
So, you had Pod
Rudder
downloaded already ? You can check
iOS/pods
folder (or)
iOS/podfile.lock
to verify this
r
yes
k
CC <!subteam^S04QT1G74Q3|@sdk-team>
@calm-yak-10773, can you please look into this ?
r
Podfile.lock, all changes related to Rudder, may help.
c
Could you please try the following steps: • Clone your React-Native project. • Clear the cache by running the command:
Copy code
npx 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.
r
node_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.
Clone project and add Rudder package helps
❤️ 2
c
Glad to hear that🙂! It seems that the project required some cleaning.
😇 1
r
Thank You for support @calm-yak-10773 @kind-carpenter-27609.
🙂 2