-
-
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
Sourcemaps and events with debug ids are not matching #14247
Comments
Hey @oddouu, could you please provide another link to an issue? We're getting 404s on those. |
Apologies @andreiborza , I've updated the issue link in the description with one that's working. Thanks! |
Actually, the sourcemap you uploaded appears to be broken. There is nothing in the |
Thank you for bringing this to my attention! We build our app using only the I tried to generate the source maps locally by disabling the Sentry module, enabling Something is failing during the build process when generating the sourcemap files, and I'm not sure what is causing it as no errors are reported in the build logs. I then enabled the This issue describes a similar problem. It appears to be an upstream issue with Vite, so I’m not sure if a solution is currently available. I will investigate further and update this issue if I find any solution 🤔 |
Thanks for the investigation and sharing the findings here @oddouu |
After a deeper investigation, I discovered that upgrading the The strange factor is that the build doesn’t fail - the app works and is deployed correctly - the issue only affects source map files and no particular errors are thrown. By reverting this update as a temporary workaround, only 6 out of 44 source map files remain broken, which is a significant improvement. I then uploaded new source maps, retriggered the previous error, and the code is now correctly unminified 🎉 Given these findings, I believe this issue can be closed. Hope this helps anyone else facing similar issues! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nuxt
SDK Version
8.37.1
Framework Version
Nuxt 3.14.159
Link to Sentry event
https://leadsbridge.sentry.io/share/issue/ff633cd9ac384faf9b54fa7832ab5e8b/
Reproduction Example/SDK Setup
Steps to Reproduce
We installed the latest version of
@sentry/nuxt
(version 8.37.1) in our Nuxt project, which is also updated to the latest version (3.14.159). We use nuxt in full SPA mode, as we have thessr
option switched off.We added the required configuration in the
nuxt.config.ts
file to enable sourcemap uploads and created thesentry.client.config.ts
file.To deploy our application, we use AWS Amplify - in particular, we use the Nitro preset for this provider: https://nitro.build/deploy/providers/aws-amplify . It works similarly to other platforms, with the particularity that the dist directory is called
.amplify-hosting
.Our
amplify.yml
file is very simple, and it's the same one as described in the official docs. The only difference is that we use Yarn:In the Amplify logs, we can see that the build process was successful and that the source maps were uploaded to Sentry.
In Sentry, under Settings > Organization > Project > Source Maps, the source maps are listed correctly.
Expected Result
When an error occurs, we expect Sentry to display the original, unminified source code with the correct line numbers, leveraging the uploaded source maps.
In Issue #13997 there is a similar problem, which was resolved recently by PR #14020.
Also, Issue #14029 discusses the compatibility of the Sentry Nuxt SDK with various deployment platforms.
Since I saw both an active and recent development on this subject, I thought opening a new issue might be relevant, especially since we use AWS Amplify. Please let me know if I missed anything important, and thanks for the amazing work 🙏
Actual Result
The error is shown in Sentry, but the code remains minified:
When we click on Unminify Code, it appears that a matching Debug ID is found correctly:
The text was updated successfully, but these errors were encountered: