Replies: 4 comments 5 replies
-
Hey there, During your build process, the code is being transpiled by your loader to commonJS. Are you uploading source maps? If they are configured properly, you will get your original source code in the stack trace. |
Beta Was this translation helpful? Give feedback.
-
Thank you for response. I used next.config.js
Then after building the project source maps were sent to sentry with:
But result is exactly the same. I don't see original code, but generated code. |
Beta Was this translation helpful? Give feedback.
-
FYI:
|
Beta Was this translation helpful? Give feedback.
-
Sentry displays generated JavaScript code instead of original code.
Here is report in Sentry:

Here is my original code:

I set Sentry's Next.js through wizard with
npx @sentry/wizard -i nextjs.
Then I had to update next.config.js for the needs of the project. This is my next.config.js
I am using:
What can be root cause of wrong Sentry report? Appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions