👉🏽
> npm install @sentry/browser @sentry/integrations
Vue CLI example
// app.js (or other file)
import Vue from 'vue'
import * as Sentry from '@sentry/browser';
import * as Integrations from '@sentry/integrations';
Sentry.init({
dsn: 'https://<key>@sentry.io/<project>',
integrations: [
new Integrations.Vue({
Vue,
attachProps: true
})
],
});
Vue CLI example
> npm install @nuxtjs/sentry
Nuxt example
// nuxt.config.js
{
modules: [
'@nuxtjs/sentry',
],
sentry: {
dsn: '', // Enter your project's DSN here
config: {}, // Additional config
}
}
Nuxt example
// nuxt.config.js
{
modules: [
'@nuxtjs/sentry',
],
sentry: {
dsn: 'https://<key>@sentry.io/<project>',
config: {
clientIntegrations: {
Vue: {
logErrors: true,
},
},
},
}
}
Bib example
...
Name
Device
Actions
CODE-LEVEL REPORTS!
...
Thank you!