Having some trouble with sourcemaps with Next.js #8899
-
Hi, I'm having some trouble with sourcemaps using I can see that release bundles are being created using the correct version numbers: But sourcemaps do not show for issues: Release tracking also does not seem to be working: It feels like releases are being picked up on by the Webpack plugin but not associated with issues/events? The Sentry CLI suggests a similar cause:
This used to work, but I'm not sure what changed. Here's our `next.config.js`
I can also copy/paste the Sentry config files if necessary. I recently re-ran I've checked our CI settings and Let me know if there's any other info I can provide, and thanks for your time reading this. The Project ID is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thank you for the detailed problem description, @philwolstenholme. I reached out to the team. Expect an update soon. |
Beta Was this translation helpful? Give feedback.
-
Hi, it doesn't look like you're using our Next.js SDK in the browser - that is required for everything to work. Please follow the setup guide here or even easier run the setup wizard: (I slightly recommend removing your previous Sentry setup code because something went wrong there) |
Beta Was this translation helpful? Give feedback.
Okay, so if you want to use a custom client, setting up source maps for Next.js is gonna be quite a bit more painful:
You will have to turn off the Sentry Webpack plugin that ships with the Next.js SDK (
disableClientFileUpload: true
innext.config.js
) and follow the guide here: https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/webpack/ (You might also need to tweak some plugin settings)If you want the painless path I recommend ditching the custom client and just going with
Sentry.init()
.