Skip to content

Scripts are tagged with debugging ids but sourcemaps are not #14493

Closed

Description

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.40.0

Framework Version

Nuxt 3.14.1592

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://stackblitz.com/edit/github-hpvuaa?file=nuxt.config.ts

Steps to Reproduce

  1. nuxt.config.ts

       export default defineNuxtConfig({
         compatibilityDate: '2024-11-01',
         devtools: { enabled: true },
         sourcemap: { client: true, server: true },
         modules: [
           "@sentry/nuxt/module"
         ],
         sentry: {
           debug: true,
           sourceMapsUploadOptions: {
             enabled:true,
             org: process.env.SENTRY_ORG,
             project: process.env.SENTRY_PROJECT,
             authToken: process.env.SENTRY_AUTH_TOKEN,
             telemetry: false,
           },
         },
       })
  2. In the build logs, it was showing scripts with debug id but for sourcemaps , the debug ids are not shown.

  3. Checked in the sentry project artifacts, the scripts have debug id tagged, but sourcemaps are not having any debug id.

  4. In issues, when I clicked unminify code its showing Missing source map with a matching Debug ID### Expected Result
    Source Maps should also be tagged with debug id.

Actual Result

Source Map Upload Report
  Scripts
    ~/420f5fd2-e9b0-495e-a225-68538f86e598-4.js (sourcemap at CYfSFKhq.js.map, debug id 420f5fd2-e9b0-495e-a225-68538f86e598)
    ~/654d3fa0-abe7-4fcc-8dcc-d465f18bd603-0.js (sourcemap at BUut7BJt.js.map, debug id 654d3fa0-abe7-4fcc-8dcc-d465f18bd603)
    ~/92611c7c-6cf8-42a7-96ef-6f63a1a5c150-2.js (sourcemap at CAx0sbXW.js.map, debug id 92611c7c-6cf8-42a7-96ef-6f63a1a5c150)
    ~/bb0049db-71d9-4f5f-9a80-c0dd2594320d-1.js (sourcemap at Bn8LGQa1.js.map, debug id bb0049db-71d9-4f5f-9a80-c0dd2594320d)
    ~/d15211e0-7141-48e8-9c5d-0d7abfb98bf9-3.js (sourcemap at CBkJDLHP.js.map, debug id d15211e0-7141-48e8-9c5d-0d7abfb98bf9)
  Source Maps
    ~/420f5fd2-e9b0-495e-a225-68538f86e598-4.js.map
    ~/654d3fa0-abe7-4fcc-8dcc-d465f18bd603-0.js.map
    ~/92611c7c-6cf8-42a7-96ef-6f63a1a5c150-2.js.map
    ~/bb0049db-71d9-4f5f-9a80-c0dd2594320d-1.js.map
    ~/d15211e0-7141-48e8-9c5d-0d7abfb98bf9-3.js.map
[sentry-vite-plugin] Info: Successfully uploaded source maps to Sentry

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Package: nuxtIssues related to the Sentry Nuxt SDK

    Type

    Projects

    • Status

      Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions