You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{init}from'@sentry/nuxt'init({enabled: import.meta.env.NUXT_PUBLIC_SENTRY_ENABLED==='true',debug: import.meta.env.DEV||import.meta.env.CI,dsn: import.meta.env.NUXT_PUBLIC_SENTRY_DSN,environment: import.meta.env.NUXT_PUBLIC_SENTRY_ENVIRONMENT,release: import.meta.env.NUXT_PUBLIC_SENTRY_RELEASE,// Set tracesSampleRate to 1.0 to capture 100%// of transactions for performance monitoring.// We recommend adjusting this value in productiontracesSampleRate: 0.2,// Capture Replay for 10% of all sessions,// plus for 100% of sessions with an errorreplaysSessionSampleRate: 0.1,replaysOnErrorSampleRate: 1,})
Steps to Reproduce
During build, sourcemaps are created but there is no release associated with them. Also, there is a warning that no release name is provided. It asks specifically for the key release.name but these cannot be set in the nuxt module options.
Expected Result
A successful build, with sourcemaps associated to a specific release.
Actual Result
#18 223.4 > Uploaded files to Sentry
#18 223.7 > File upload complete (processing pending on server)
#18 223.7 > Organization: [MASKED]
#18 223.7 > Project: [MASKED]
#18 223.7 > Release: undefined
#18 223.7 > Dist: None
#18 223.7 > Upload type: artifact bundle
#18 223.7
#18 223.7 Source Map Upload Report
#18 223.7 Scripts
#18 223.7 ~/00b0fce5-d98a-45f0-9b02-f9525ea59ccc-123.js (sourcemap at BuzfUGYX.js.map, debug id 00b0fce5-d98a-45f0-9b02-f9525ea59ccc)
--- a lot more
#18 223.8 DEBUG 2024-08-14 12:58:44.356205284 +00:00 skipping update nagger because session is not attended
#18 223.8 [sentry-vite-plugin] Info: Successfully uploaded source maps to Sentry
#18 223.8 ℹ ✓ built in 3m 14s
#18 223.8 ✔ Client built in 193954ms
#18 223.8 /bin/sh: git: not found
#18 223.8 [sentry-vite-plugin] Warning: No release name provided. Will not inject release. Please set the release.name option to identify your release.
#18 223.8 [sentry-vite-plugin] Warning: No release name provided. Will not create release. Please set the release.name option to identify your release.
#18 223.8 ℹ Building server...
#18 223.8 ℹ vite v5.4.0 building SSR bundle for production...
The text was updated successfully, but these errors were encountered:
Sorry for the late reply on this. The Nuxt SDK comes with the Sentry Vite plugin and this plugin detects the release name itself (e.g. from git or other environment variables). You can see how the plugin looks for the release name here in the code. You can get this warning if you don't have a git repository set up.
If you want to provide a custom release name you can do this like this (after #13811 is released):
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nuxt
SDK Version
8.26.0
Framework Version
8.26.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
nuxt.config.ts
sentry.client.config.ts
Steps to Reproduce
During build, sourcemaps are created but there is no release associated with them. Also, there is a warning that no release name is provided. It asks specifically for the key
release.name
but these cannot be set in the nuxt module options.Expected Result
A successful build, with sourcemaps associated to a specific release.
Actual Result
The text was updated successfully, but these errors were encountered: