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.

Angular - Uncaught SentryError: Native Client is not available, can't start on native.

See original GitHub issue

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/angular

SDK Version

7.6.0

Framework Version

0.6.1

Link to Sentry event

No response

Steps to Reproduce

Environment

How do you use Sentry? Sentry SaaS (sentry.io)

Which SDK and version?

@sentry/angular: ^7.6.0
@sentry/capacitor: ^0.6.1

Ionic:

   Ionic CLI                     : 6.20.1
   Ionic Framework               : @ionic/angular 6.1.13
   @angular-devkit/build-angular : 14.0.5
   @angular-devkit/schematics    : 14.0.5
   @angular/cli                  : 14.0.5
   @ionic/angular-toolkit        : 6.1.0

Capacitor:

   Capacitor CLI      : 3.6.0
   @capacitor/android : 3.6.0
   @capacitor/core    : 3.6.0
   @capacitor/ios     : 3.6.0

Steps to Reproduce

error.js:8 Uncaught SentryError: Native Client is not available, can't start on native.
    at new SentryError (error.js:8:28)
    at 41406 (wrapper.js:336:25)
    at __webpack_require__ (bootstrap:19:1)
    at 88931 (index.js:2:1)
    at __webpack_require__ (bootstrap:19:1)
    at 71571 (eventorigin.js:2:1)
    at __webpack_require__ (bootstrap:19:1)
    at 82103 (scope.js:7:1)
    at __webpack_require__ (bootstrap:19:1)
    at 85208 (xhr.js:49:2)

Expected Result

Had been using sentry capacitor plugin for several months. This issue happens recently and unable to initial sentry service and App at all.

Actual Result

error.js:8 Uncaught SentryError: Native Client is not available, can't start on native.
    at new SentryError (error.js:8:28)
    at 41406 (wrapper.js:336:25)
    at __webpack_require__ (bootstrap:19:1)
    at 88931 (index.js:2:1)
    at __webpack_require__ (bootstrap:19:1)
    at 71571 (eventorigin.js:2:1)
    at __webpack_require__ (bootstrap:19:1)
    at 82103 (scope.js:7:1)
    at __webpack_require__ (bootstrap:19:1)
    at 85208 (xhr.js:49:2)

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
lucas-zimermancommented, Jul 20, 2022

Ok, I may have found the source of the issue, I’ll check what’s enabling the Native flag on the Web code tomorrow and hopefully it’s just a quick fix to unblock you from using Angular 14.

2reactions
lucas-zimermancommented, Jul 25, 2022

@lucas-zimerman any updates? 😬

Hi, you were correct 😄, https://github.com/getsentry/sentry-javascript/pull/5260 introduced a new call to SetContext and that sets the context before the Capacitor SDK gets initialized,

I’ll release a PR to fix this new Behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SentryError: Native Client is not available, can't start on native.
I have following issue: Jest tests started failing a bunch of tests in different locations after upgrading from 1.4.2 to 1.4.3.
Read more >
Sentry React Native Crash - Native Client is not available, can ...
I had this problem as well, using the test of Sentry.nativeCrash() - the application would crash, but not be reported.
Read more >
SentryError: Native Client is not available, can't start on native ...
SentryError : Native Client is not available, can't start on native when updating expo-cli to 4.x.x (from version 3.22.3).
Read more >
Troubleshooting for Angular | Sentry Documentation
Check out our migration guide to learn everything you need to know to get up and running again with the latest Sentry features....
Read more >
@sentry/types | Yarn - Package Manager
Changelog. Unreleased. "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott. 7.28.1. fix(replay): Do not mangle...
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