getsentry / sentry-capacitor

The official Sentry SDK for Capacitor

Home Page:https://sentry.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

U.setPropagationContext is not a function

GabySotirova opened this issue · comments

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

v.7.58.0

Framework Version

@sentry/vue v.7.58.0

Link to Sentry event

No response

SDK Setup

  SentryVue.init({
    app,
    dsn,
    environment,
    normalizeDepth: 4,

    tracePropagationTargets: ["localhost", /^\//],

    integrations: [
      new Sentry.BrowserTracing({
        routingInstrumentation: SentryVue.vueRouterInstrumentation(router),
      }),

      new CaptureConsole({
        levels: ["warn", "error", "info"],
      }),

      new ExtraErrorData({
        depth: 4,
      }),

      new Sentry.Replay({
        maskAllText: false,
        blockAllMedia: true,
        mutationLimit: 1000,
      }),
    ],
    tracesSampleRate: 1,
    trackComponents: true,
    ignoreErrors: ignoredErrorList,
    replaysSessionSampleRate: 0.1,
    replaysOnErrorSampleRate: 1,
  })

Steps to Reproduce

The problem arises when trying to build the app. In a dev environment all is fine.
The last version that works is 7.57.0. Everything above, doesn't.
Dependencies and plugins:
imageimage
image

Expected Result

App builds without errors.

Actual Result

image

Resolved by upgrading @sentry/capacitor package to 0.12.3, which apparently needs Sentry javascript packages to use 7.64.0 .