Sentry + Quasar #9331
Answered
by
ontwikkelfabriek
ghosteye1
asked this question in
Ideas / Proposals
-
Hello, Anyone ever had the experience of working with Quasar with Sentry to catch errors. |
Beta Was this translation helpful? Give feedback.
Answered by
ontwikkelfabriek
May 18, 2021
Replies: 1 comment 3 replies
-
Yes I have it running on some of my Quasar projects. I would start here: You have to use a boot file for the Sentry My Sentry boot file in 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)
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
hawkeye64
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
: