-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
upload-sourcemaps “bad reference to source” Error After Angular 19 Update #2372
Comments
Adding Haven't yet verified if it actually makes the sourcemaps work properly in Sentry though. |
Hi @andreialecu, thanks for filing this. Another user reported this on discord, they mentioned tracing this issue back to esbuild's 0.24.1 release. We're still investigating, but for the meantime, if you're using esbuild, could you try downgrading it to |
If you are using PNPM you can pin the version of esbuild like this:
|
Thank you for the fast turnaround. I'm using Yarn, and added a resolution to 0.24.0 I can confirm that it indeed works with esbuild 0.24.0 |
Thanks for taking the time to file this and for finding the workaround @scomans. We'll have to do some digging on this one. |
One problem here is definitely that there is no indication which sourcemap file was being processed when the error happened. cc @szokeasaurusrex |
Indeed @loewenheim. I've been looking into how to improve our error messages for things like this, so hopefully we can improve behavior here, as well |
Same problems on our angular 19 project, but suprisingly not all of them. For npm, the workaround is:
|
CLI Version
2.41.1
Operating System and Architecture
Operating System Version
macOS 14.6.1
Link to reproduction repository
No response
CLI Command
COMMIT_HASH=$(git rev-parse HEAD) sentry-cli releases -o <organization-name> -p <project-name> files $COMMIT_HASH upload-sourcemaps <build-directory>
Exact Reproduction Steps
After upgrading to Angular 19 and running our build scripts it appears that the step to
upload-sourcemaps
using thesentry-cli
fails with just:I cannot see more details about this even if I enable logging, and I cannot share the repo as it's not public.
Expected Results
The Sentry CLI successfully uploads the source maps without any errors.
Actual Results
The Sentry CLI fails during the analysis and rewriting phase with the error:
Logs
The text was updated successfully, but these errors were encountered: