sentry-react-native: @ sentry/react-native modal message "could not connect to Sentry native SDK"
OS:
- Windows
- [*] MacOS
- Linux
Platform:
- [*] iOS
- [*] Android
SDK:
- [*]
@sentry/react-native: 1.0.5 -
react-native-sentry
react-native version: 0.60.4, 0.60.5
Init Code:
import * as Sentry from "@sentry/react-native";
Sentry.init({
dsn: "__DSN__" // i'm use __DSN__ = real dsn app
});
Sentry.setTag("myTag", "tag-value");
Sentry.setExtra("myExtra", "extra-value");
Sentry.addBreadcrumb({ message: "test" });
Sentry.captureMessage("Hello Sentry!");
I have following issue:
After starting, I see a modal message “Warning, could not connect to Sentry native SDK”.
If you do not want to use the native component please pass enableNative: false in the options. Visit: https://docs.sentry.io/clients/react-native/ for more details."
Thanks in advance for the answers.
- Why does the link in the message lead to the documentation for the deprecated project?
- Why am I referring to this modal message, how do I resolve this issue?
- What should i use now for react-native 0.60+ sentry-react-native или @sentry/react-native?
Steps to reproduce:
react-native init AwesomeProjectcd AwesomeProjectnpm inpm install --save @sentry/react-native- in directory
AwesomeProjectrunreact-native start - run ios and android app
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (8 by maintainers)
Anyone find a solution to this? Running into the same issue right now. I’ve reinstalled all node_modules and walked through the wizard. Tried ‘npm link’ as well as pod install, neither had any effect.
Seeing it on both iOS and Android, in addition, interestingly enough, even when i use the flag enableNative:false, I still get the warnings.
“@sentry/react-native”: “^1.4.1”, “react-native”: “0.62.2”,