Hi,
we run on-premise Sentry and we’re facing issues with incorrect mapping *.map files to original source files .ts/.js.
Every release i create new version, upload source maps with sentry-cli
binary to this version, but if error will occure, we got error “Source code was not found” and Sentry wants to find them on website, instead on release artifacts.
Source maps are working fine, if they’re on the website. When we delete them, Sentry won’t find them. I tried even disable “Enable JavaScript source fetching” on project, but it didn’t helped.
Source maps are working fine even in development, so i think there is not problem in source maps.
We even upload dist JS files (our source is *.ts). Do we need to upload them?
Server version: 9.1.2
Client SDK version: sentry.javascript.browser:6.0.0
I’ll attach images fe. for version 2021.124.3
.
Inside file ng-app.js
is correct sourcemap URL //# sourceMappingURL=ng-app_353a961baecf34d71635.js.map
. This file is on this release as shown from picture.
We create version and upload source maps this way:
sentry-cli releases new -p "userweb-static" "2021.124.3"
sentry-cli releases finalize "2021.124.3"
sentry-cli releases files "2021.124.3" upload-sourcemaps dist/js
sentry-cli releases -p "userweb-static" set-commits --auto "2021.124.3"
Next image (i can upload only 1): https://i.ibb.co/6H3XPtz/1.jpg
Is there issue with our workflow or with Sentry?
Thanks
John