sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

TypeError: k.startWithDsnString

Open tilonet opened this issue 6 years ago • 5 comments

OS:

  • [ ] Windows
  • [x] MacOS
  • [ ] Linux

Platform:

  • [x] iOS
  • [x] Android

SDK:

  • [x] @sentry/react-native (>= 1.0.0)
  • [ ] react-native-sentry (<= 0.43.2)

SDK version: 1.3.8

react-native version: 0.61.5

Are you using Expo?

  • [ ] Yes
  • [x] No

Are you using sentry.io or on-premise?

  • [ ] sentry.io (SaaS)
  • [x] on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'xy.'
  //NO other options
});

or

(react-native-sentry)

Sentry.config(
  'https://[email protected]/...'
  // other options
 ).install();

I have following issue:

Only on debug builds on both platforms ios and android get directly on app start TypeError: k.startWithDsnString is not a function BugAppStart

Tested with emulator/simulator and physical devices and Browserstack devices

Steps to reproduce:

  • Step 1 build app
  • Step 2 start

Actual result:

app crash

Expected result:

app starts

tilonet avatar Jun 10 '20 06:06 tilonet

Can you please update to the latest 1.4.5 and run the sentry wizard in the install instructions here: https://docs.sentry.io/platforms/react-native/ and let me know if the issue persists?

jennmueng avatar Jun 10 '20 07:06 jennmueng

Thanks for the reply, i did the update and and the wizard succeeded but the issue still exist

tilonet avatar Jun 10 '20 08:06 tilonet

How are you initializing the SDK, can I see the full Sentry.init call, and have you tried deleting node_modules and doing an install from scratch? What's happening there is its trying to call a function that no longer exists, we removed startWithDsnString in 1.4.0

jennmueng avatar Jun 10 '20 08:06 jennmueng

sorry was a caching problem, the startWithDsnString call still exists in the bundle files. the update fixed the issue, thank you very much for the fast help

tilonet avatar Jun 10 '20 09:06 tilonet

I get issue again I couldnt find a solution

yusufdeepwork avatar Sep 10 '21 12:09 yusufdeepwork