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.

Version mismatch between @sentry/javascript packages installed by user and the @sentry/capacitor package.

See original GitHub issue

Environment

How do you use Sentry?

  • Sentry SaaS (sentry.io)

Which SDK and version?

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

Screenshot 2021-07-28 at 11-43-43 TypeError taskProducer is not a function

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
WIStudentcommented, Jul 28, 2021

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.

0reactions
jennmuengcommented, Aug 24, 2021

@squio Expect 0.4.0 very soon either today or in a following day.

Read more comments on GitHub >

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

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