#Umang - app issue

1 messages · Page 1 of 1 (latest)

analog furnace
#

Hi Umang. Let's chat in here

gentle gust
#

Hi

#

My RN version is 0.67.2
targetSdkVersion && compileSdkVersion 31

analog furnace
#

Are you using the same versions for everything on Android as you are in iOS?

gentle gust
#

yeap

#

I danced with a tambourine whole day yesterday with changing npm to yarn, clearing cache, removing node modules and installing again

#

but again and again I'm facing with this runtime error

#

now I did it again, another error but I guess the reason of this error is same

#

stripe version is
"@stripe/stripe-react-native": "^0.11.0"

lone bane
#

Hello 👋
Taking over here
Have you tried creating a new sample test app to see if its an issue with this one app's configuration?

gentle gust
#

@lone bane it works with fresh app on same version of RN

lone bane
#

Interesting, so not a bug with the library.
I'd recommend going through imports and making sure those are correct

gentle gust
#

what do you mean?

lone bane
#

Like in the last error you've attached, it is pointing to a specific component where useStripe() is failing
I'd recommend looking at the actual node_modules path for the function and making sure you have the right files present

#

If you don't have a lot of code, an easier way would be to move all your components to freshly created sample app.

gentle gust
#

yeah, but if problem in imports then iOS shouldn't work also

second option is not a way in my situation))

lone bane
#

yeah, but if problem in imports then iOS shouldn't work also
yeah that's fair.
The sample test app uses the same exact versions of the libraries correct?

gentle gust
#

yes

lone bane
#

Ah okay
I'm not sure what else to recommend here as either it must be something in the code or an issue with the node_modules installation

gentle gust
#

No probs, I didn't expect a big success in messaging here since it's not the direct problem with stripe lib, because it works ok on fresh project. I hoped may be someone had same issue

But I guess I'll go with removing lib by lib and see if it builds or not

lone bane
#

Yeah I tried looking into past issues but most disappeared after fresh build or were related to expo :/

#

Good luck though, I hope you find a solution for it soon