
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@nuxtjs/sentry
Advanced tools
Sentry module for Nuxt.js
The module enables error logging through Sentry.
public_key and private_key options, since the updated Sentry packages don't support these anymore.@nuxtjs/sentry dependency using yarn or npm to your project@nuxtjs/sentry to modules section of nuxt.config.js{
modules: [
'@nuxtjs/sentry',
],
sentry: {
dsn: '', // Enter your project's DSN here
config: {}, // Additional config
}
}
Versions of NuxtJS before v2.4.0 are not supported by this package.
Enter your DSN in the NuxtJS config file. Additional config settings can be found here.
In a Vue component, Sentry is available as this.$sentry, so we can call functions like
this.$sentry.captureException(new Error('example'))
where this is a Vue instance.
asyncDataWhile using nuxt's asyncData method, $sentry object in the context like other nuxt modules:
async asyncData ({ params, $sentry }) {
try {
let { data } = await axios.get(`https://my-api/posts/${params.id}`)
return { title: data.title }
} catch (error) {
$sentry.captureException(error)
}
}
For the other special nuxt lifecycle areas like plugins, middleware, modules, and nuxtServerInit, the $sentry object is also accessible through the context object like so:
async nuxtServerInit({ commit }, { $sentry }) {
try {
let { data } = await axios.get(`https://my-api/timestamp`)
commit('setTimeStamp', data)
} catch (error) {
$sentry.captureException(error)
}
}
Options can be passed using either environment variables or sentry section in nuxt.config.js.
Normally setting required DSN information would be enough.
String
process.env.SENTRY_DSN || falsedsn is provided, Sentry will be initialised, but errors will not be logged. See #47 for more information about this.Boolean
process.env.SENTRY_DISABLED || falsetrue.Boolean
process.env.SENTRY_DISABLE_CLIENT_SIDE || falseBoolean
process.env.SENTRY_DISABLE_SERVER_SIDE || falseBoolean
process.env.SENTRY_INITIALIZE || trueBoolean
process.env.SENTRY_PUBLISH_RELEASE || falseBoolean
process.env.SENTRY_AUTO_ATTACH_COMMITS || falsepublishRelease = trueString
process.env.SENTRY_RELEASE_REPO || falsepublishRelease = true && attachCommits = trueBoolean
process.env.SENTRY_DISABLE_SERVER_RELEASE || falseBoolean
process.env.SENTRY_DISABLE_CLIENT_RELEASE || falseDictionary
{
Dedupe: {},
ExtraErrorData: {},
ReportingObserver: {},
RewriteFrames: {},
Vue: {attachProps: true}
}
Dictionary
{
Dedupe: {},
ExtraErrorData: {},
RewriteFrames: {},
Transaction: {}
}
Object
{ environment: this.options.dev ? 'development' : 'production' }Object
{ }Object
{ }Object
module.js since defaults include various options that also change dynamically based on other options.@sentry/webpack-plugin. See documentation at https://github.com/getsentry/sentry-webpack-plugin/blob/master/README.mdSupport for the sentry-webpack-plugin was introduced #a6cd8d3. This can be used to send releases to Sentry. Use the publishRelease option to enable this feature.
Note that releases are only submitted to Sentry when (options.publishRelease && !isDev) is true.
Copyright (c) Diederik van den Burger diederik@glue.group
FAQs
Sentry module for Nuxt.js
The npm package @nuxtjs/sentry receives a total of 29,495 weekly downloads. As such, @nuxtjs/sentry popularity was classified as popular.
We found that @nuxtjs/sentry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.