# Pinia integration available for Vue and Nuxt SDKs

Published: 2024-11-07

Source: https://sentry.io/changelog/pinia-integration-available-for-vue-and-nuxt-sdks

---

Pinia is the defacto library for state management in Vue and Nuxt. Our Vue and Nuxt SDKs since [release 8.37.0](https://github.com/getsentry/sentry-javascript/releases/tag/8.37.0) have an integration which will attach information about the current state being managed by Pinia to the error events sent to sentry. Enriched [breadcrumbs](https://docs.sentry.io/product/issues/issue-details/breadcrumbs/)  and the attached state will help you debug errors faster.

![image.png](https://cslswue7zohm4cat.public.blob.vercel-storage.com/xDoDef4-image.png)

For Vue you will update your Pinia config:
```
import { createPinia } from "pinia";
import { createSentryPiniaPlugin } from "@sentry/vue";

const pinia = createPinia();

pinia.use(createSentryPiniaPlugin());
```

For Nuxt update your Sentry init in `sentry.client.config.ts`
```
Sentry.init({
  dsn: SENTRY_DSN,
  integrations: [Sentry.piniaIntegration(usePinia())],
});
```

See our [Vue](https://docs.sentry.io/platforms/javascript/guides/vue/features/pinia/)  and [Nuxt](https://docs.sentry.io/platforms/javascript/guides/nuxt/features/pinia/)  docs respectively to learn more about how to take advantage of the new integration. 