Skip to content

Turbopack (Next) with sourcemaps, function names mangled #103561

Closed as duplicate

Description

@renrizzolo

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  • Use @sentry/[email protected]
  • Use next 15.5.6 with Turbopack and uploaded sourcemaps
  • Use captureMessage to log a message in a custom function
function sentryMessage(args) {
  captureMessage(args)
}

Expected Result

The primary title of the issue is sentryMessage

Actual Result

The primary title of the issue is something like n or t5

Note/aside: there seems to be no way to manually set the Primary title of a captureMessage issue, other than directly modifying the stack trace's function names in beforeSend, which feels a bit clunky.


Below are the first few lines of the raw stack trace as seen in the Issue UI, comparing turbopack and webpack.

Turbopack

null: Dialog trigger not found
    at t2 (turbopack:///[project]/node_modules/@sentry/core/src/exports.ts:44:28)
    at n (turbopack:///[project]/src/sentry/sentryMessage.ts:12:19)
    at h (turbopack:///[project]/src/dialog/dialogTrigger.tsx:266:26)

Turbopack ('Minified' checked in UI)

null: Dialog trigger not found
    at t2 (/_next/static/chunks/1d41ffb46ce41c08.js:3:54326)
    at n (/_next/static/chunks/5e83825c32cfbda4.js:3:348197)
    at h (/_next/static/chunks/5e83825c32cfbda4.js:3:597114)

Webpack

null: Dialog trigger not found
    at c (./node_modules/@sentry/core/build/esm/exports.js:34:25)
    at sentryMessage (./src/sentry/sentryMessage.ts:11:23)
    at dialogTriggerLog (./src/dialog/dialogTrigger.tsx:266:26)

Webpack ('Minified' checked in UI)

null: Dialog trigger not found
    at c (app:///_next/static/chunks/main-ee20fd49bd09bf08.js:12:57606)
    at a (app:///_next/static/chunks/pages/_app-2237d0c5556274a1.js:5:287254)
    at h (app:///_next/static/chunks/pages/_app-2237d0c5556274a1.js:5:4461)

Product Area

Issues - Source Maps

Link

No response

DSN

No response

Version

No response

Activity

  1. linear commented on Nov 18, 2025

    @linear
  2. getsantry commented on Nov 18, 2025

    @getsantry
    Contributor

    Assigning to @getsentry/support for routing ⏲️

  3. moved this to Waiting for: Support in GitHub Issues with 👀 3on Nov 18, 2025
  4. chargome commented on Nov 19, 2025

    @chargome
    Member

    Thanks for reporting @renrizzolo, closing this one as duplicate!

  5. locked and limited conversation to collaborators on Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions