question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@ sentry/react-native modal message "could not connect to Sentry native SDK"

See original GitHub issue

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.

  1. Why does the link in the message lead to the documentation for the deprecated project?
  2. Why am I referring to this modal message, how do I resolve this issue?
  3. 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 run react-native start
  • run ios and android app

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jamesdunaycommented, Jun 1, 2020

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”,

0reactions
jennmuengcommented, Jul 31, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found