getsentry / sentry-webpack-plugin

Repo moved to https://github.com/getsentry/sentry-javascript-bundler-plugins. Please open any issues/PRs there.
MIT License
662 stars 116 forks source link

Successful upload of sourcemaps results to -1 artifacts #447

Closed brrrachel closed 1 year ago

brrrachel commented 1 year ago

Environment

I am using within my NX (version 15) angular (version 15) project @sentry/webpack-plugin version (2.2.2) to upload sourcemaps to Sentry. Sentry is self-hosted.

Steps to Reproduce

sentryWebpackPlugin({
      org: 'my-gmbh',
      project: 'frontend',
      authToken:
        'someToken',
      url: 'https://sentry.mygmbh.de',
      release: {
        name: '6.2.0-rc5',
        env: 'production',
        uploadLegacySourcemaps: {
          paths: ['./dist'],
          ext: ['map', 'js'],
          validate: true,
        },
      },
      debug: true,
    }),

Expected Result

Source maps are visible on sentry.

Actual Result

The upload logs report that files have been successfully uploaded. But on sentry it says -1 artifacts and sentry-cli sourcemaps explain returns

Release has no artifacts uploaded

image