-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remix sourcemaps don't have debugId injected when publicPath is set #9666
Comments
Hi, the One way of dealing with this is having the source files and the bundled files colocated in the output. Another way would be to emit bundled js files with |
@lforst in my case, the source map files are in the same directory as their corresponding source files, so I think it should be feasible for I was unsure about where to file this issue; since it is somewhat Remix-specific, I opened it here, thinking that perhaps |
@brettdh I just forwarded this to the team operating on |
I opened getsentry/sentry-cli#1850 which should resolve this issue. |
Thanks for the contribution. Once the CLI is released we'll have to bump the CLI version in the SDK too. |
CLI is released 🥳 |
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
remix.config.js
includes a URL value forpublicPath
--org
and--project
opts in a later stepnpx remix build --sourcemap
npx sentry-cli sourcemaps inject --org <org> --project <project> --deleteAfterUpload=false
.js.map
files inpublic/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.The text was updated successfully, but these errors were encountered: