keithamoss / mapa

2 stars 0 forks source link

Work out why the Vite Sentry Plugin isn't sending valid/acceptable source maps to Sentry #1298

Closed keithamoss closed 2 weeks ago

keithamoss commented 2 weeks ago

First, make sure it happens in local dev when we run a manual build. (In case it's a GHA thing.)

Second, try just bumping Vite and all of its plugins to the latest version.

Ref: https://github.com/getsentry/sentry-cli/issues/364

Ref: https://docs.sentry.io/platforms/javascript/guides/react/sourcemaps/uploading/vite/

Source Map Upload Report
  Scripts
    ~/2cb925d4-769f-456c-9d87-0dbb4fdd475b-0.js (no sourcemap ref, debug id 2cb925d4-769f-456c-9d87-0dbb4fdd475b)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/2cb925d4-769f-456c-9d87-0dbb4fdd475b-0.js)
    ~/7b945806-898d-480c-b1c9-b57a402abcfa-2.js (no sourcemap ref, debug id 7b945806-898d-480c-b1c9-b57a402abcfa)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/7b945806-898d-480c-b1c9-b57a402abcfa-2.js)
    ~/b84c77a6-16c9-423f-ad6b-c7083b01c88d-1.js (no sourcemap ref, debug id b84c77a6-16c9-423f-ad6b-c7083b01c88d)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/b84c77a6-16c9-423f-ad6b-c7083b01c88d-1.js)
[sentry-vite-plugin] Info: Successfully uploaded source maps to Sentry
keithamoss commented 2 weeks ago

This is important because it makes debugging stuff like undefined is not an object (evaluating 'delete((i=(r=t.contexts)==null?... much harder!