Skip to content

Remix sourcemaps don't have debugId injected when publicPath is set #9666

Closed
@brettdh

Description

@brettdh

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/remix

SDK Version

7.81.1

Framework Version

Remix 2.1.0

Link to Sentry event

n/a

SDK Setup

Omitting; this bug is sufficiently described with just the results of sentry-cli sourcemaps inject. (It hasn't been significantly modified from the results of following the setup guide, though.)

Steps to Reproduce

  1. Configure a Remix app using create-remix
  2. Make sure the remix.config.js includes a URL value for publicPath
    • Mine points to a public S3 bucket
  3. Follow the Sentry docs for setting up the Remix SDK
    • This includes creating a Sentry account and project, to be used as the --org and --project opts in a later step
  4. Run npx remix build --sourcemap
  5. Run npx sentry-cli sourcemaps inject --org <org> --project <project> --deleteAfterUpload=false
  6. Inspect any of the generated .js.map files in public/build/

Expected Result

For any given .js file in the Remix build output, both that source file and its .js.map file should contain a comment like this:

//# debugId=<uuid>

Actual Result

Each .js file contains the //# debugId=<uuid> comment, but none of the .js.map files do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: remixIssues related to the Sentry Remix SDK

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions