Skip to main content

Why are my source maps still not working?

Updated over a month ago

Issue

I've gone through the troubleshooting steps. When I click the unminify code button, I can see that there are no errors and the model implies that everything is working. But my code is still either minified or displaying something incorrect/incomplete

Applies To

  • JavaScript users

Symptoms

  • Stacktrace showing same frame over and over

  • Stacktrace showing some changes but not all

  • Clicking the unminify code button shows something similar to this with no errors -

    Screenshot 2024-09-19 at 2.22.05 PM.png

Resolution

If the source map debugger is showing no more errors for either 1 of the 2 options (Debug Ids or Releases) and your code still looks wrong, it is likely the source maps being uploaded to Sentry are broken.

Toggle between the minified and unminified view by clicking on the ... button and checking the Minified checkbox. If there are any changes, it means that source maps are applying. Look for changes in the line numbers, file paths, function names, etc.
​

You will want to revisit your build process to determine where the breakage is happening. Sentry only uploads your source maps and applies them. Sentry does not know whether the source maps that get uploaded and applied are correct.

Did this answer your question?