Sentry Source Maps Not Working

Share
Workaround available Web, Next.js, React Native, Vue Updated November 13, 2026Based on 4 user reportsHow we research

Quick answer

Stack traces stay minified when the source map was not uploaded before the event, the release does not match, or the build never generated maps. Upload maps with a matching release or Debug ID, then trigger a new event.

Most likely fix: Make sure source maps are generated

How to fix it

Try these in order — the most common fix is first.

  1. 1. Make sure source maps are generated

    1. Enable sourcemap output (webpack devtool 'source-map', Vite build.sourcemap: true)
    2. Rebuild and confirm .map files exist
    Did this fix it?
  2. 2. Upload with the same release

    1. Use the Sentry bundler plugin or sentry-cli to upload maps during the build
    2. Set the same release value in Sentry.init
    3. Check Project Settings > Source Maps for a Debug ID on each bundle
    Did this fix it?
  3. 3. Trigger a new event

    1. Events already processed are not reprocessed
    2. Throw a fresh error after the upload and check the new issue
    Did this fix it?

Symptoms

Stack traces show minified code, or an issue banner says 'Source code was not found'.

Why it happens

  • Build tool does not generate source maps
  • Maps uploaded after the first event for that issue
  • Release in the SDK differs from the release used at upload
  • Stack trace paths do not match uploaded file paths

This guide also covers

  • sentry source maps not working
  • sentry minified stack trace
  • sentry source code was not found

Still not working?

If Sentry keeps failing, you're not alone. See every Sentry problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

Other Sentry errors

All 10 Sentry errors and fixes →