#[Resolved] Sentry + NextJS, Client Side Note not Unminified

3 messages · Page 1 of 1 (latest)

autumn moon
#

I have a freshly-minted Next app through create-next-app and Sentry integration through @sentry/wizard as I want to debug our broken Sentry intgration in our app.

Whenever I tried to simulate an exception through /sentry-example-page, the error on the server side can always be unminifed but the client side errors for some reason, can't be unminifed at all. Is this because I'm running on a dev mode?

Here's my next.config.js (the config of the actual app is similar to this one)


export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://www.npmjs.com/package/@sentry/webpack-plugin#options
org: "xxx",
project: "yyy",

silent: !process.env.CI,

widenClientFileUpload: true,

reactComponentAnnotation: {
  enabled: true,
},

tunnelRoute: "/monitoring",

disableLogger: false,

automaticVercelMonitors: true,

sourcemaps: {
  disable: false,
}
});
marsh scaffold
#

Hey! Can you link the event please? Also, are you running this with next dev or with next dev --turbo?

autumn moon
#

Sorry for the long update, turns out the problem stems from our Docker build that doesn't upload the sourcemaps correctly.

We've fixed it and codes are unminified correctly now.