Version mismatch between @sentry/javascript packages installed by user and the @sentry/capacitor package.
See original GitHub issueEnvironment
How do you use Sentry?
- Sentry SaaS (sentry.io)
Which SDK and version?
- Ionic/Angular 5.6.4
- Angular 11.2.9
- Capacitor 3.0.1
- “@sentry/angular”: “^6.10.0”,
- “@sentry/capacitor”: “^0.3.0”,
Steps to Reproduce
Implement Hello World example as per git README instructions, not onboarding example which looks outdated
All relevant code in app-module.ts:
import {ErrorHandler, Injectable, NgModule} from '@angular/core';
import * as Sentry from "@sentry/capacitor";
import { init as sentryAngularInit, createErrorHandler } from "@sentry/angular";
// ...
Sentry.init({
dsn: 'https://gsdhgdshghdsds.ingest.sentry.io/32444532',
}, sentryAngularInit);
Sentry.captureMessage('Hello, world!');
// ...
@NgModule({
declarations: [
AppComponent,
],
entryComponents: [],
imports: [
// ...
],
providers: [
WebView,
//...
{
provide: ErrorHandler,
useValue: createErrorHandler(),
},
],
bootstrap: [AppComponent]
})
export class AppModule
{
}
Build for Android using Android studio and the following steps:
- ionic cap sync android
- build in Android studio
- run on real device (not emulator)
Expected Result
Just one issue: Hello, world!
from http://localhost/
And maybe a lot of other exceptions caused by my code 😉
Actual Result
Apart from the one Hello World there are many exceptions from Sentry itself: taskProducer is not a function
There are 50 events of this issue in just one App launch without any further interacetion
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
React Native version mismatch - Stack Overflow
I have some packages with native dependencies in my project, and some of those needed pod modules being installed. The problem was that...
Read more >Troubleshooting for Capacitor - Sentry Documentation
Different Versions for Sibling SDKs. If you see the following error during build time, the sibling SDKs installed in your app have mismatched...
Read more >How to Fix a React Native Version Mismatch Quickly - Waldo
Let's first get a solid understanding of what exactly a version mismatch is. Consider a React Native multiplayer gaming app.
Read more >Upgraded to 2.3 and I cannot use my previously cloned conda ...
I can create a new environment but I cannot get Pro to use my previously cloned environment. There is a warning that there...
Read more >NPM Vet, a simple CLI tool for checking npm package versions
This can result in discrepancies between what you think is being installed, and what actually gets installed. Your locally installed packages might be...
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 can confirm that these errors do not occur when downgrading all other sentry packages (especially @sentry/utils) to 6.7.2. So this might be a possible workaround until it is fixed in @sentry/capacitor.
@squio Expect
0.4.0
very soon either today or in a following day.