Closed scefali closed 1 month ago
Hi, as of today, minified variables cannot be unminified (unless you have runtime information and even then it is still just heuristics).
There is a sourcemaps proposal that is making good progress about encoding information about bindings in sourcemaps: https://github.com/tc39/source-map/blob/main/proposals/scopes.md
Until that lands, we're stuck with the status quo.
I opened https://github.com/getsentry/sentry-docs/pull/10662 to document this. Let's close this after the docs changes because I don't think we'll solve this for a while. We can re-visit after the sourcemap changes come through!
Thank @lforst @AbhiPrasad, makes sense. Hope things are going well on your end!
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.9.2
Framework Version
14.2.4
Link to Sentry event
https://builtrightco.sentry.io/issues/5588390641/events/55a977f056554ebfa66ca6002b02d000/?project=4507092307148800
SDK Setup/Reproduction Example
Steps to Reproduce
Happens on a generic backend error. Don't think there is anything in particular I can share that helps reproduce.
Expected Result
I would expect the the variables shown to use their actual variable names instead of the shortened variable names if source maps are available.
Actual Result