Skip to content

Sentry + Quasar #9331

May 18, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Yes I have it running on some of my Quasar projects.

I would start here:
https://docs.sentry.io/platforms/javascript/guides/vue/

You have to use a boot file for the Sentry init code.
https://quasar.dev/quasar-cli/boot-files

My Sentry boot file in src/boot/sentry.js:

import Vue from 'vue'
import * as Sentry from '@sentry/browser'
import * as Integrations from '@sentry/integrations'



if (process.env.PROD) {
    let options = {
        release: '0.0.1',
        dsn: 'https://[email protected]/XXXXXX',
        integrations: [new Integrations.Vue({ Vue, attachProps: true })],
        ignoreErrors: ['ResizeObserver loop limit exceeded']
    }
    Sentry.init(options)
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ghosteye1
Comment options

@ontwikkelfabriek
Comment options

@ghosteye1
Comment options

Answer selected by hawkeye64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants