You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sentry-expo 3.0 is about to be released (current is 3.0.0-rc4). That release will include a breaking change wherein exports are now namespaced. That change leads to this package failing with sentry-expo 3.0:
The fix is simple... instead of:
import * as Sentry from 'sentry-expo'
...
Sentry.captureException(error)
we now need to do:
import { Native as Sentry } from 'sentry-expo'
...
Sentry.captureException(error)
Please note that this applies to all/many methods, but does not apply to init.
I discovered this while tracking down changes required in order to upgrade a project to Expo SDK 39, which includes React 0.63, and therefore includes the change from YellowBox to LogBox. It seems that sentry-expo used YellowBox pre-3.0, and soon everyone using Expo is therefore going to upgrade that package to avoid YellowBox warnings. The relevant ticket is here: expo/expo#10300
The text was updated successfully, but these errors were encountered:
At second glance, this issue is not a bug in this package, and only requires a simple change for developers.
I felt it warranted a documentation change, since it's not immediately obvious to developers which version of the object they are going to want to pass to createSentryMiddleware(). Not sure if you'll want to merge it, but I opened a PR with that documentation change which you can see above. Thanks!
sentry-expo
3.0 is about to be released (current is 3.0.0-rc4). That release will include a breaking change wherein exports are now namespaced. That change leads to this package failing withsentry-expo
3.0:The fix is simple... instead of:
we now need to do:
Please note that this applies to all/many methods, but does not apply to
init
.I discovered this while tracking down changes required in order to upgrade a project to Expo SDK 39, which includes React 0.63, and therefore includes the change from
YellowBox
toLogBox
. It seems thatsentry-expo
used YellowBox pre-3.0, and soon everyone using Expo is therefore going to upgrade that package to avoid YellowBox warnings. The relevant ticket is here: expo/expo#10300The text was updated successfully, but these errors were encountered: