---
title: "Vue.js Error Reporting with Sentry"
description: "Sentry now supports Vue.js, including Vue 2"
url: "https://blog.sentry.io/error-reporting-for-vue-js/"
canonical_url: "https://blog.sentry.io/error-reporting-for-vue-js/"
authors: ["Ben Vinegar"]
published: "2016-08-17"
category: "Product Updates"
---

# Vue.js Error Reporting with Sentry

In anticipation of the upcoming release of Vue.js 2, we’ve updated Sentry to officially support Vue.js 2.x through our [browser JavaScript SDK](https://docs.sentry.io/hosted/clients/javascript/).

## Getting Started

Add the following snippet to your application’s HTML file. It should go after where you have loaded the Vue library file.

_For instructions using npm or Bower, please see our official_ [_Vue plugin docs_](https://docs.sentry.io/hosted/clients/javascript/integrations/vue/).

After these two steps, Sentry will start capturing both native [JavaScript errors](https://sentry.io/for/javascript/) and [Vue.js errors](https://sentry.io/for/vue/) deep inside your application.

## See component metadata in Sentry

Vue 2 introduces a new `errorHandler` config option that can be used to capture [Vue error](https://sentry.io/for/vue/) tracking information. The Sentry Vue plugin uses this callback to [add valuable metadata](https://sentry.io/features/context/) about the state of your application to crash reports, including affected component names and the values of props.

![Vue Vue Extra Data](https://blog.sentry.io/_vercel/image?url=_astro%2Finline-0.C1TbTMf6.png&w=828&q=100)

## Combine with Laravel reporting

Earlier in 2016, Vue became the default client-side framework for Laravel projects. If you’re using Vue with Laravel, you can additionally use our [sentry-laravel](https://github.com/getsentry/sentry-laravel) package for end-to-end [Laravel error](https://sentry.io/for/laravel/) reporting of your application.

That’s it! As always, feedback, comments, or [pull requests](https://github.com/getsentry/raven-js) are greatly appreciated.
