#NP-reactnative-errors

1 messages · Page 1 of 1 (latest)

karmic driftBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vital hedge
#

It;'s new issue

bleak juniper
#

hello NP, setting up ReactNative packages can be tricky due to the multiple different environments/frameworks/versions.

off hand, I do not know what the issue here is, one seems to indicate something about the Stripe React Native SDK but the other two are more generic React Native issues.

Is this on a fresh project? or a continuation of what you were talking about in the earlier thread?

vital hedge
#

It's same project but getting error while running project.
sdk installed successfully

bleak juniper
#

my advice would be to take a completely fresh project, with nothing except just the Stripe React Native SDK installed and check if the errors occur there. I say that as someone who's gone through the pain of integrating diff libraries on React Native projects, debugging live is really hard so I had to break down the problem and start from the basics with a fresh project

#

right now that error could mean anything, it isn't a standard error

vital hedge
#

Yes it's plan project

bleak juniper
#

I don't understand what you mean?

vital hedge
#

I am getting same error on fresh project as well

#

how can I resolve?

bleak juniper
#

ok so first, can you lay out all the steps you took, to set up your fresh project?

e.g. call npm X and install y etc

and then at which point do you get this error

vital hedge
#

I have created fresh project then installed yark SDK via yarn add @stripe/stripe-react-native
SDK installed successfully.

then when I run the project getting an error

bleak juniper
#

are you using Expo?

vital hedge
#

No simple RN project

bleak juniper
#

what version of RN are you on? and what version of the stripe-react-native is installed, in your pacakge-lock.json?

karmic driftBOT
vital hedge
#

I am using RN 0.64.4 and stripe SKD version is 0.19.0

dense tusk
#

👋 hopping in here since hmunoz has to head out - give me a few mi nutes to catch up

vital hedge
#

okay

dense tusk
#

You said you're only getting this error when you run the project, right? What command are you using to run it?

karmic driftBOT
#

NP-reactnative-errors

vital hedge
#

npx react-native run-android

dense tusk
#

Can you try with npx react-native run-android --reset-cache

vital hedge
#

tried

#

already

dense tusk
#

Hmm... if resetting the cache doesn't work the only thing I can think of is trying a different version of the stripe SDK

vital hedge
#

any solution of this erorr?

dense tusk
#

From some digging around the suggestion seems to be to update the RN version

#

Backing up for a bit - is there a reason you're using a older version of RN and our SDK?