Skip to content

Vue integration silently consuming errors with no output when Sentry is disabled #2018

@bbugh

Description

@bbugh

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

5.0.7

Description

Even when Sentry is disabled, the Vue integration will consume errors. This was a heck of a time trying to figure out why something was wrong. I narrowed it down that it is just the Vue integration.

Here are the scenarios pass/fail:

SUCCESS: In this setup, sentry will skip error handling, and it will raise like normal through the browser:

Sentry.init({
  enabled: false,
  // no integrations set
   ...
})

SUCCESS: Sentry will capture the Vue error and send it to the service, as expected

Sentry.init({
  enabled: true, // enabled
  integrations: [
    new Integrations.Vue({
      Vue,
      attachProps: true
    })
  ]
})

BUG: This setup will silently consume Vue errors. There will be no notice in the console or anywhere else that something went wrong.

Sentry.init({
  enabled: false, // disabled
  integrations: [
    new Integrations.Vue({
      Vue,
      attachProps: true
    })
  ]
})

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