Skip to content

Source Maps are not being uploaded #10750

@kapso

Description

@kapso

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

7.102.0

Framework Version

React 18.2.0

Link to Sentry event

https://tradespace-io.sentry.io/issues/4994432157/?alert_rule_id=4376506&alert_type=issue&notification_uuid=26382b58-50ff-44f3-b275-9773ae9920fa&project=5528704&referrer=slack

SDK Setup

const { sentryEsbuildPlugin } = require('@sentry/esbuild-plugin');

sentryEsbuildPlugin({
      authToken: process.env.SENTRY_AUTH_TOKEN,
      org: 'our-org',
      project: 'client-ui',
      release: {
        name: `Heroku-v${(parseInt(process.env.HEROKU_RELEASE_VERSION.slice(1)) + 1)}`
      },
      sourcemaps: {
        filesToDeleteAfterUpload: process.env.NODE_ENV === 'production' ? [
          '/**/app.js-*.map',
          '/**/app.js-*.map.gz',
          '/**/admin.js-*.map',
          '/**/admin.js-*.map.gz'
        ] : [
          '/**/admin.js-*.map',
          '/**/admin.js-*.map.gz'
        ]
      }
    })

build logs

[sentry-esbuild-plugin] Info: Sending error and performance telemetry data to Sentry. To disable telemetry, set `options.telemetry` to `false`.
       .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
[sentry-esbuild-plugin] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.

Steps to Reproduce

do you want us to share out build script?

Expected Result

Source maps should be uploaded

Actual Result

Source maps not uploaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions