nabla / nabla-react-native

Nabla React Native SDK
16 stars 4 forks source link

NablaCore with Sentry #5

Open rjuevesano opened 1 year ago

rjuevesano commented 1 year ago

I already have Sentry (@sentry/react-native: ^5.6.0) installed and I want to install nabla and I'm getting this issues.

I followed the documentation here https://docs.nabla.com/docs/init-rn

image

after running pod update Sentry

image
benoitletondor commented 1 year ago

Hello, thanks for the issue.

Yes our iOS SDK (that the React Native one uses under the hood) depends on Sentry 8.1.0: https://github.com/nabla/nabla-ios/blob/main/NablaCore.podspec#L27

So since @sentry/react-native seems to depend on Sentry 8.8.0 it conflicts. I suggest using a previous version of @sentry/react-native as a quick fix and we'll have to bump our internal dependencies on our side, but it can take a bit of time before we actually push it.

rjuevesano commented 1 year ago

Hello, thanks for the issue.

Yes our iOS SDK (that the React Native one uses under the hood) depends on Sentry 8.1.0: https://github.com/nabla/nabla-ios/blob/main/NablaCore.podspec#L27

So since @sentry/react-native seems to depend on Sentry 8.8.0 it conflicts. I suggest using a previous version of @sentry/react-native as a quick fix and we'll have to bump our internal dependencies on our side, but it can take a bit of time before we actually push it.

Thanks for the reply.

So I downgraded @sentry/react-native to 5.1.0

image

but then I'm getting this

image
benoitletondor commented 1 year ago

It seems that @sentry/react-native version 5.1.0 depends on Sentry/Hybrid 8.2 and not 8.1

rjuevesano commented 1 year ago

hi @benoitletondor can you help me what version should I used for @sentry/react-native? I can't find the exact version to work with Nabla. :(

benoitletondor commented 1 year ago

I think 4.14.0 should work just fine

rjuevesano commented 1 year ago

Thanks @benoitletondor but I'm getting this error when installing that version

[!] The 'Pods-ProjectName' target has libraries with conflicting names: libsentry.a.
Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: The 'Pods-ProjectName' target has libraries with conflicting names: libsentry.a.
benoitletondor commented 1 year ago

I'm not a Cocoapods expert but a quick Google search pointed me to a cache issue: https://stackoverflow.com/a/70391606/2508174

rjuevesano commented 1 year ago

Thanks for that. I already tried it and even clean everything but still getting the same issue.

benoitletondor commented 1 year ago

Well then I'm really sorry but I'm out of ideas, I don't think it's an issue from the Nabla SDK here but rather the Cocoapods setup which I'm not an expert of.