npm install --save @sentry/browser
or
yarn add @sentry/browser
import { init, captureMessage } from '@sentry/browser';
init({
dsn: '__DSN__',
// ...
});
captureMessage('Hello, world!');
# npm
npm install --save bugsnag-js bugsnag-vue
# yarn
yarn add bugsnag-js bugsnag-vue
const bugsnag = require('bugsnag-js')
const bugsnagClient = bugsnag('API_KEY')
// Initialize Vue before we start the BugsnagVue plugin
const Vue = require('vue')
const bugsnagVue = require('bugsnag-vue')
bugsnagClient.use(bugsnagVue(Vue))