opened
uhmtoto
username_0
### Install Airbrake for Vue.js in two easy steps

**Step 1:** Add the library
Include via CDN:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/airbrake-js/1.6.2/client.min.js"></script>
```
We also support installation via <a href="https://github.com/airbrake/airbrake-js#installation" class="external-link">npm</a> or <a href="https://github.com/airbrake/airbrake-js#installation" class="external-link">Bower</a>.

**Step 2:** Copy this config snippet to your `app.js` file to define your Vue.js <a href="https://vuejs.org/v2/api/#errorHandler" class="external-link">error handler</a>:


(You can find your project ID and API key with your [project's settings](https://airbrake.io/projects/240727/edit)):


```js
import AirbrakeClient from 'airbrake-js';

var airbrake = new AirbrakeClient({
  projectId: <Your project ID>,
  projectKey: '<Your project API key>'
});

Vue.config.errorHandler = function (err, vm, info) {
  airbrake.notify({
    error: err,
    params: {info: info}
  });
}
```

Visit our <a href="https://github.com/airbrake/airbrake-js" class="external-link">official GitHub repo</a> for more info on alternative configurations and advanced options.
Setup Airbrake for your Vuejs application
issue
closed
uhmtoto
username_0
issue