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.51.0
Framework Version
Nuxt 3.15.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
// https://nuxt.com/docs/api/configuration/nuxt-configexportdefaultdefineNuxtConfig({compatibilityDate: '2024-11-01',devtools: {enabled: true},modules: ['@sentry/nuxt/module'],sentry: {sourceMapsUploadOptions: {org: 'adiantek',project: 'projectname',sourcemaps: {assets: ['./.output/public/**/*'],filesToDeleteAfterUpload: ['./.output/public/**/*.map']}}},sourcemap: {client: 'hidden'}})Steps to Reproduce
npx nuxi@latest init projectnamecd projectnamenpx nuxi@latest init projectname- Modify config
nuxt.config.ts to upload only generated .map (code from SDK Setup) npm run generate
Expected Result
Source maps from generated page should be uploaded. Sentry/nuxt uploads only from nuxt-server. sentry-rollup-plugin trying to upload source maps before Prerendering 3 initial routes with crawler.
Actual Result
>generate>nuxtgenerateNuxt3.15.2withNitro2.10.4nuxi00:51:16[Sentry]Enabledsourcemapgenerationinthebuildoptionswithnitro.rollupConfig.output.sourcemap: hidden.00:51:18[00:51:18][Sentry]DisabledsourcemapsettingintheNuxtconfig: nitro.rollupConfig.output.sourcemapExcludeSources.Sourcemapswillincludetheactualcodetobeabletoun-minifycodesnippetsinSentry.ERROR[sentry-rollup-plugin] Info: Usingenvironmentvariablesconfiguredin".env.sentry-build-plugin".00:51:18ERROR[sentry-rollup-plugin] Warning: Noreleasenameprovided.Willnotinjectrelease.Pleasesettherelease.nameoptiontoidentifyyourrelease.00:51:18ERROR[sentry-rollup-plugin] Warning: Noreleasenameprovided.Willnotcreaterelease.Pleasesettherelease.nameoptiontoidentifyyourrelease.00:51:18ℹBuildingfor Nitro preset: static nuxi00:51:19[sentry-vite-plugin]Info: Usingenvironmentvariablesconfiguredin".env.sentry-build-plugin".00:51:20[sentry-vite-plugin]Warning: Noreleasenameprovided.Willnotinjectrelease.Pleasesettherelease.nameoptiontoidentifyyourrelease.00:51:20[sentry-vite-plugin]Warning: Noreleasenameprovided.Willnotcreaterelease.Pleasesettherelease.nameoptiontoidentifyyourrelease.00:51:20ℹBuildingclient...00:51:20ℹvitev6.0.11buildingforproduction...00:51:20[sentry-vite-plugin] Info: SendingtelemetrydataonissuesandperformancetoSentry.Todisabletelemetry,set`options.telemetry`to`false`.ℹ✓358modulestransformed.00:51:23computinggzipsize(7)...[sentry-vite-plugin] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.
ℹ.nuxt/dist/client/manifest.json1.33kB│gzip: 0.34kB00:51:24ℹ.nuxt/dist/client/_nuxt/error-500.dGVH929u.css1.88kB│gzip: 0.72kB00:51:24ℹ.nuxt/dist/client/_nuxt/error-404.C3V-3Mc4.css3.56kB│gzip: 1.10kB00:51:24ℹ.nuxt/dist/client/_nuxt/entry.ofCu9KLV.css12.41kB│gzip: 2.57kB00:51:24ℹ.nuxt/dist/client/_nuxt/BdR5AMfq.js3.71kB│gzip: 1.68kB│map: 5.27kB00:51:24ℹ.nuxt/dist/client/_nuxt/Dhk-kskU.js9.76kB│gzip: 3.93kB│map: 31.19kB00:51:24ℹ.nuxt/dist/client/_nuxt/Lbg0X16a.js160.24kB│gzip: 52.10kB│map: 699.75kB00:51:24ℹ.nuxt/dist/client/_nuxt/IbnC22Td.js306.59kB│gzip: 92.81kB│map: 1,566.64kB00:51:24ℹ✓builtin3.54s00:51:24✔Clientbuiltin3560ms00:51:24[sentry-vite-plugin] Info: Usingenvironmentvariablesconfiguredin".env.sentry-build-plugin".00:51:24[sentry-vite-plugin] Warning: Noreleasenameprovided.Willnotinjectrelease.Pleasesettherelease.nameoptiontoidentifyyourrelease.00:51:24[sentry-vite-plugin] Warning: Noreleasenameprovided.Willnotcreaterelease.Pleasesettherelease.nameoptiontoidentifyyourrelease.00:51:24ℹBuildingserver...00:51:24ℹvitev6.0.11buildingSSRbundleforproduction...00:51:24[sentry-vite-plugin] Info: SendingtelemetrydataonissuesandperformancetoSentry.Todisabletelemetry,set`options.telemetry`to`false`.ℹ✓54modulestransformed.00:51:24ℹ.nuxt/dist/server/_nuxt/entry-styles.D-XpIqgu.mjs0.08kB00:51:25ℹ.nuxt/dist/server/_nuxt/error-404-styles.BGub-NoM.mjs0.08kB00:51:25ℹ.nuxt/dist/server/_nuxt/error-500-styles.BmnNQC4v.mjs0.08kB00:51:25ℹ.nuxt/dist/server/_nuxt/welcome-styles.Cqg1wF7g.mjs0.15kB00:51:25ℹ.nuxt/dist/server/_nuxt/error-404-styles.NlSTGTiZ.mjs0.15kB00:51:25ℹ.nuxt/dist/server/_nuxt/error-500-styles._pC1xW-P.mjs0.15kB00:51:25ℹ.nuxt/dist/server/styles.mjs1.11kB00:51:25ℹ.nuxt/dist/server/_nuxt/error-500-styles-1.mjs-CJrjQwQj.js2.51kB│map: 0.12kB00:51:25ℹ.nuxt/dist/server/sentry.server.config.mjs4.11kB│map: 7.85kB00:51:25ℹ.nuxt/dist/server/_nuxt/error-404-styles-1.mjs-5Q3bo-Ck.js4.18kB│map: 0.12kB00:51:25ℹ.nuxt/dist/server/_nuxt/error-500-D1U_AuVD.js5.06kB│map: 5.37kB00:51:25ℹ.nuxt/dist/server/_nuxt/entry-styles-1.mjs-CvMDM5yB.js13.07kB│map: 0.12kB00:51:25ℹ.nuxt/dist/server/_nuxt/error-404-C-tWvrm_.js14.65kB│map: 26.50kB00:51:25ℹ.nuxt/dist/server/server.mjs125.18kB│map: 182.60kB00:51:25[sentry-vite-plugin] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.
ℹ✓builtin785ms00:51:25✔Serverbuiltin793ms00:51:25ℹInitializingprerenderernitro00:51:25ERROR[sentry-rollup-plugin] Info: SendingtelemetrydataonissuesandperformancetoSentry.Todisabletelemetry,setoptions.telemetrytofalse.00:51:25[00:51:26]WARN"file:///C:/Users/barwn/git/test/projectname/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js"isimportedby"virtual:#nitro-internal-virtual/storage",butcouldnotberesolved–treatingitasanexternaldependency.ERROR[sentry-rollup-plugin] Warning: Didn't find any matching sources for debug ID upload. Please check the sourcemaps.assets option. 00:51:26 ℹPrerendering3initialrouteswithcrawler nitro 00:51:26├─/404.html(50ms)nitro00:51:26├─/200.html(49ms)nitro00:51:26├─/(54ms)nitro00:51:26├─/_payload.json?114c8c55-6c3c-42cb-9f67-68710bbea16e(1ms)(skipped)nitro00:51:26├─/_payload.json(2ms)nitro00:51:26ℹPrerendered4routesin1.732secondsnitro00:51:26✔Generatedpublic.output/publicnitro00:51:26✔Youcanpreviewthisbuildusingnpxserve.output/publicnitro00:51:26✔Youcannowdeploy.output/publictoanystatichosting!
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.51.0
Framework Version
Nuxt 3.15.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
npx nuxi@latest init projectnamecd projectnamenpx nuxi@latest init projectnamenuxt.config.tsto upload only generated.map(code from SDK Setup)npm run generateExpected Result
Source maps from generated page should be uploaded. Sentry/nuxt uploads only from nuxt-server.
sentry-rollup-plugintrying to upload source maps beforePrerendering 3 initial routes with crawler.Actual Result