Replies: 1 comment 1 reply
-
It's not the SDK or Sentry requesting the source map. It's your browser. Whenever you have a You can tell uglify not to emit a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We upload source maps after this guide for webpack, although we have to manually create some source maps with
uglify-js
because we can NOT easily add them all as webpack "entry points":We then upload sourcemaps with
sentry-cli
afterwards:sentry-cli --url "${sentry_url}" --auth-token "${SENTRY_AUTH_TOKEN}" sourcemaps upload --org "${sentry_org_slug}" --project "${SENTRY_PROJECT}" --release "${COMMIT_HASH}" --url-prefix "~/assets/dist/modules" "${PROJECTPATH}/${PUBLIC_DIRECTORY}/assets/dist/modules"
As suggested in the docs, we remove the source maps after uploading them, although I use
find
to do that.But now we get
NotFoundHttpException
from our Symfony application, because thesymbolicator/25.2.0
GET
requests the source maps that are set in the minified file via//# sourceMappingURL=<our-file>.<hash>.js.map
.As sentry should resolve source maps in the sentry application, not in the users browser, I have no idea why the symbolicator creates these requests.
Why does Symbolicator requests source maps in our case?
Beta Was this translation helpful? Give feedback.
All reactions