sentry
@sentry/nuxt

Sentry SDK for Nuxt

Sentry

Official Sentry SDK for Nuxt

npm versionnpm dmnpm dt

This SDK is for Nuxt. If you're using Vue see our Vue SDK here.

Setup Instructions and Documentation

Check out the Official Nuxt SDK Docs for further information on configuration and usage.

Compatibility

The minimum supported version of Nuxt is 3.7.0 (3.14.0+ recommended).

General

This package is a wrapper around @sentry/node for the server and @sentry/vue for the client side, with added functionality related to Nuxt.

Troubleshoot

If your server-side auto-instrumentation stops recording spans after bundling (e.g. certain Nitro presets), make sure @sentry/server-runtime-injection is kept external in the Nitro/server build rather than inlined, as its runtime module hook must resolve from node_modules. @sentry/node logs a warning the first time an instrumented dependency loads uninstrumented.

If you encounter any issues with error tracking or integrations, refer to the official Sentry Nuxt SDK documentation. If the documentation does not provide the necessary information, consider opening an issue on GitHub.