Angular - Uncaught SentryError: Native Client is not available, can't start on native.
See original GitHub issueIs there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
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:
- Created a year ago
- Reactions:2
- Comments:21 (2 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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.
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.