Skip to content

Nuxt sourcemaps not found on build if using --preset netlify #13703

Closed
@rjgx4

Description

@rjgx4

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

Framework Version

Nuxt 3.13.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

// nuxt.config.ts
export default defineNuxtConfig({
  sourcemap: {
    server: true,
    client: true,
  },

 modules: [
    '@sentry/nuxt/module'
 ]

 sentry: {
    sourceMapsUploadOptions: {
      org: 'org',
      project: 'project',
      authToken: 'authkey',
    },
  }
})

Steps to Reproduce

  1. Run nuxt build --preset netlify
  2. During the build sentry will warn:
    [sentry-vite-plugin] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.

Expected Result

The sourcemaps should be processed and uploaded.

Actual Result

The sourcemaps are not found and uploaded. I can however confirm that the js files contain sentry debug ids and the corresponding source map files (.js.map) exist in the resulting dist directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nuxtIssues related to the Sentry Nuxt SDK

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions