-
-
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
Source maps not matching due to file renaming in @sentry/nextjs #13730
Comments
Hi, the modal tells you "capture a new event to verify the changes". Can you try and do so? Make sure you set "latest" in the dropdown in the error in the top right corner instead of "recommended". Thanks! |
@lforst Same with the 'latest' event. This modal suggests to capture new events for months now, every new event has the same issue. |
@K-Jean @annielinnik would you mind providing a link to an event where this happens? Thanks! |
Oh @annielinnik you're on self hosted. Please check the logs of your |
I'm also in self-hosted environnement. We have a lot of errors in the
|
Well that looks like the problem. Seems like you need to give the service network access to your Sentry service and also file write permissions. |
Hello @lforst you point the right direction for me, I fixed the folder rights see this ticket : getsentry/self-hosted#3114 |
Closing this for clean-up. Please re-open if it still applies. Thanks! |
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nextjs
SDK Version
8.30.0
Framework Version
Next 14.2.6
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
sentry-example-page
generated withnpx @sentry/wizard@latest -i sourcemaps
The way I see it: Sentry renames files, replacing their names with Debug ID and moving them to the root folder; then Sentry tries to find a file in
_next/server/*
and fails because there's no such file.My
next.config.js
:Expected Result
Files uploaded to Sentry with their original names and paths. Source maps work.
Actual Result
Every file is renamed with format
[debug_id].js
and[debug_id].js.map
and uploaded at root folder.The text was updated successfully, but these errors were encountered: