sentry-javascript-bundler-plugins
sentry-javascript-bundler-plugins copied to clipboard
Source map loaded and connected to release, but still don't see any readable trace
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
I wanted to upload source map to sentry, so I could see readable source code and error trace
So, I use webpack plugin this way(pic 1). And it seems to be loading source maps to sentry and connecting it to proper release (pic 2), but I can't see any source-code-mantions (pic 3)
Is it expected? Or how can i Fix it ?
Expected Result
Source map loaded, connected to release, and I see readable source code trace
Actual Result
Source map loaded, connected to release, but I don't see souce code trace
Product Area
Unknown
Link
No response
DSN
No response
Version
7.106.0
Assigning to @getsentry/support for routing ⏲️
Hi @Lvovk!
I think the problem is much rather that there is no stack trace rather than the source code not being unminified with the uploaded source maps. Since you're using Sentry SaaS (sentry.io), can you post a link to the event in Sentry?
Furthermore, to debug this please:
- tell us your SDK version
- show your
Sentry.initcode - tell us how to reproduce this behaviour in a minimal reproduciton. Or, ideally, provide a Stackblitz/GH repo or similar with a working minimal reproducible example. thanks!
Hi @Lms24 ! Thanks for the answear !
Link to the event: https://notsy-b-v.sentry.io/issues/5168873424/events/2fd0e174c105437196a0a3e053d5260e/ My SDK version is 7.106.0 My Sentry init looks like this (img 1)
How to reproduce:
- I use webpack plugin, which is suposed to load sourcemap to sentry and it seems to do it
- I have added mock errors (tried "Throw" experssions, syntax errors and ETC) inside my code and started the page
- I see those errors on sentry, but can't see the trace
I have added mock errors (tried "Throw" experssions, syntax errors and ETC) inside my code and started the page
I looked at the event you linked and I can confirm that the SDK did not send a stack trace to Sentry. How exactly are you throwing and capturing this error? Are you using Sentry.captureMessage/Sentry.captureException or are you simply doing something like throw('test string')? Also where are you throwing the error? Any chance it's directly in a
Generally, the SDK should try to generate a stack trace, even if the value that's captured (e.g. just a string) doesn't have a stacktrace attached. So I'm wondering where things go wrong here.
As you can see, there are quite a few variables to debug this properly. I assume you're adding Sentry to a non-trivial application - any chance you can narrow it down to a more minimal example and post it as a stackblitz or GitHub repo?
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀