getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.58k stars 337 forks source link

Sourcemap Not Working with ExpoKit #658

Closed lightninglu10 closed 2 years ago

lightninglu10 commented 5 years ago

OS:

Platform:

SDK:

react-native version: 0.59.0

Init Code:

Sentry.init({
      dsn: '...',
      enableInExpoDevelopment: true,
      debug: true,
      environment: ENV,
    });

I have following issue:

Sentry errors do not include the javascript sourcemaps

https://sentry.io/share/issue/8b35f63de3bd4ccb84d2874871fc2b28/

in app.json we have a postpublish hook to upload into sentry, and we can see in our releases page that our sourcemap actually is in sentry.

Whenever an error is shown though, there is no mapping back to JS.

lightninglu10 commented 5 years ago

So I think the issue is related to one here: https://github.com/expo/sentry-expo/issues/71

It looks like sentry-expo is not automatically setting a release on an event which would cause issues of not linking the proper release to the artifacts.

Would anyone here know anything about this?

marandaneto commented 2 years ago

@lightninglu10 do you still run into these issues? there were many fixes related to that, also for expo.

marandaneto commented 2 years ago

Closing the issue as a part of large repository cleanup, due to it being inactive and/or outdated. Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it. Cheers!