@ sentry/react-native modal message "could not connect to Sentry native SDK"
See original GitHub issueOS:
- 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 AwesomeProject
cd AwesomeProject
npm i
npm install --save @sentry/react-native
- in directory
AwesomeProject
runreact-native start
- run ios and android app
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Could not connect to Sentry native SDK. · Issue #670 - GitHub
I have following issue: Installation is successful using sentry-wizard , however, prompted with "... cannot connect to Sentry Native SDK".
Read more >Troubleshooting for React Native | Sentry Documentation
Troubleshoot and resolve common issues with the React Native SDK.
Read more >Using Sentry - Expo Documentation
Sentry treats React Native as a first-class citizen and we have collaborated with Sentry to make sure Expo is, too. It's very easy...
Read more >Expo React Native application cannot start after upgrading ...
I just upgraded the expo SDK in my react native app from 42 to 43 using "expo ... A module failed to load...
Read more >Application Monitoring and Error Tracking - Sentry - YouTube
Your browser can't play this video. Learn more.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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”,
@muriloneo Hmm did it install a newer version in the background or something? But yeah, at the very least I strongly suggest if you want to disable native crash handling to just do
enableNative: false
because the error you have there would crash on production.