sentry-cli: Sourcemaps not working for server bundles
Hi
Environment
What version of the CLI and what OS are you running?
I use this command in our dockerfile: RUN curl -sL https://sentry.io/get-cli/ | bash
Steps to Reproduce
In dockerfile: RUN sentry-cli sourcemaps inject ${STATIC_FILES_PATH}
In GH Workflow:
sentry-cli releases new $SENTRY_RELEASE --project flow-node
sentry-cli releases files $SENTRY_RELEASE upload-sourcemaps ./sentry-static-files/server --dist $SENTRY_DIST --project flow-node --ignore *date-fns_locale*
sentry-cli releases finalize $SENTRY_RELEASE --project flow-node
Expected/Actual Result
We expect the sourcemaps to work for our app server bundles (bundled with webpack).
They already work for our service files which arenโt bundled.
They also work for our client bundles which have --url-prefix set though
Logs
The bundle contains //# sourceMappingURL=main.bef100.js.map but no longer any debugId. DebugIds not being injected was sovled in a previous issue that I created but it has perhaps resurfaced in a different form? https://github.com/getsentry/sentry-cli/issues/1681
In the sourcemap debugId seems to have been replaced by mappings?
"mappings":"yKAIA,MAAMA,GAA0BC,EAAAA,EAAAA,IAAS,CAADC,SAAA,GAAAC,YAAA,6BAAAC,QAAAC,GAAA,MAAAC,EAAA,KAAAC,QAAAF,GAAA,gBAAAH,SAAAI,MAAAE,EAAAA,EAAAF,EAAA,EAAAG,YACvCA,IACQ,wRACPC,aAAAL,GAAA,MAAAC,EAAA,KAAAC,QAAAF,GAAA,YAAAH,....
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 32 (14 by maintainers)
@tranan89 Great! Glad you could solve it.
Removing
source-map-supportsolved it ๐ Thx for the help!@loewenheim I mailed you now ๐