getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.91k stars 4.17k forks source link

Source maps not uploaded with @sentry/nextjs #35363

Closed Meemaw closed 2 years ago

Meemaw commented 2 years ago

Environment

SaaS (https://sentry.io/)

Version

No response

Steps to Reproduce

We're having problems getting sourcemaps to upload using @sentry/nextjs (v7.0.0).

We see the following in the logs:

info  - Creating an optimized production build ..> Bundling files for upload... 
> Bundling completed in 0.002s
> Optimizing completed in 0s
> Uploading completed in 0.174s
> Uploaded release files to Sentry
> Processing completed in 0.208s
> File upload complete (processing pending on server)
> Organization: xxx
> Project: xxx
> Release: matej-test-5
> Dist: None

I should note that we are using src folder directory (https://nextjs.org/docs/advanced-features/src-directory), in case this could prevent sentry cli to find the sourcemaps.

Expected Result

Source maps get uploaded.

Actual Result

The release has 0 artifacts:

Screenshot 2022-06-06 at 15 47 28
Meemaw commented 2 years ago

Moved to https://github.com/getsentry/sentry-javascript/