Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
rokgerzelj opened this issue Sep 17, 2024 · 1 comment
Open
3 tasks done

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

rokgerzelj opened this issue Sep 17, 2024 · 1 comment
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK

Comments

@rokgerzelj
Copy link

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.

@github-actions github-actions bot added the Package: nuxt Issues related to the Sentry Nuxt SDK label Sep 17, 2024
@andreiborza
Copy link
Member

Hi @rokgerzelj thanks for writing in. We'll take a look at this.

cc @s1gr1d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK
Projects
Status: No status
Development

No branches or pull requests

2 participants