Skip to content

Uncaught TypeError: o.Offline is not a constructor #2868

Description

@nwaughachukwuma

Package + Version

  • @sentry/browser
  • Sentry Integration
  • @sentry/node

Version:

5.22.3

Description

Based on the new offline feature done in #2778 I tried to add the Sentry Offline integration to our project and got the following error

Uncaught TypeError: o.Offline is not a constructor
    at Module.cd49 (sentry.ts:17)
    at s (bootstrap:84)
    at Object.0 (app.be676346.js:1)
    at s (bootstrap:84)
    at n (bootstrap:45)
    at bootstrap:221
    at app.be676346.js:1

Describe your issue in detail, ideally, you have a reproducible demo that you can show.

import Vue from 'vue'
import * as Sentry from '@sentry/browser'
import { Vue as VueIntegration, Offline } from '@sentry/integrations'

Sentry.init({
  release: 'release_v',
  environment: 'release_env',
  dsn: 'SENTRY_DSN',
  enabled: true,
  integrations: [
    new VueIntegration({
      Vue,
      attachProps: true,
      logErrors: true,
    }),
    new Offline(),
  ],
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions