Combined with sentry, it is convenient to collect the error log on the front end.
npm install vue-error-log$ npm install vue-error-log
$ yarn add vue-error-log
> We will be using ES2015 in the code samples in the guide.
``javascript
// import Vue and VueErrorLog and then call Vue.use(VueErrorLog).
// import Vue from 'vue'
// import VueErrorLog from 'vue-error-log'
//
// https://docs.sentry.io/quickstart/#pick-a-client-integration
// VueErrorLog({
// dsn: '{PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}/{PATH}{PROJECT_ID}',
// release: 'version',
// env: 'development'
// })
// TODO: here the example
// Now the app has started!
new Vue({
el: '#app'
})
`
Output the following:
`html``