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
When logging errors, for example using Sentry.captureException, I'm getting the following error/warning:
Sentry Logger [Log]: Failed to get device context from native: TypeError: RNSentry.deviceContexts is not a function. (In 'RNSentry.deviceContexts()', 'RNSentry.deviceContexts' is undefined)
Steps to reproduce:
Create new project npx react-native init AwesomeProject
Install Sentry yarn add @sentry/react-native
Open app.js and add the following:
import * as Sentry from "@sentry/react-native";
Sentry.init({
dsn: "__DSN__" // My DSN hidden here
});
Sentry.captureMessage("Hello Sentry!");
Run on device or emulator yarn run android
You can optionally also run npx sentry-wizard -i reactNative -p android to run the Sentry Wizard, but even after running the Wizard (thus adding settings and updating android/app/build.gradle) the issue persists.
Actual result:
I'm getting a warning about RNSentry.deviceContexts being undefined:
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 1.7.2
react-native
version: 0.63.2Are you using Expo?
Are you using sentry.io or on-premise?
Configuration:
(
@sentry/react-native
)I have following issue:
When logging errors, for example using
Sentry.captureException
, I'm getting the following error/warning:Steps to reproduce:
npx react-native init AwesomeProject
yarn add @sentry/react-native
yarn run android
You can optionally also run
npx sentry-wizard -i reactNative -p android
to run the Sentry Wizard, but even after running the Wizard (thus adding settings and updating android/app/build.gradle) the issue persists.Actual result:
I'm getting a warning about
RNSentry.deviceContexts
being undefined:Expected result:
That I don't get the error :D
The text was updated successfully, but these errors were encountered: