Source Maps
To enable readable stack traces in your Sentry errors, you need to upload your source maps to Sentry.
Uploading Source Maps
We've compiled a list of guides on how to upload source maps to Sentry for the most popular JavaScript build tools:
Other Tools
If you're not using one of these tools, we assume you already know how to generate source maps with your toolchain and we recommend you upload them using Sentry CLI.
Though we strongly recommend uploading source maps as part of your build process, for browser applications it's also possible to host your source maps publicly.
Artifact vs Release Bundles
A bundle is how Sentry stores and uses your source maps to un-minify the stack traces of incoming errors. With our new bundle format being recently released, visit this page to understand how Artifact Bundles address the headaches that can come with using Release Bundles.
Additional Resources
- Using sentry-cli to Upload Source Maps
- 4 Reasons Why Your Source Maps Are Broken
- Debug Your Node.js Projects with Source Maps
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
- Package:
- npm:@sentry/react
- Version:
- 7.51.0
- Repository:
- https://github.com/getsentry/sentry-javascript