-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nextjs
SDK Version
8.47.0
Framework Version
14.1.4
Link to Sentry event
No response
Reproduction Example/SDK Setup
Despite each row showing that source maps and debugId have been properly implemented, the stack trace is still minified.
Steps to Reproduce
const nextConfig = {
nx: {
svgr: true,
},
reactStrictMode: true,
productionBrowserSourceMaps: true,
output: 'standalone',
outputFileTracing: true,
compiler: {
emotion: {
autoLabel: 'always',
labelFormat: '[local]-host',
},
},
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
instrumentationHook: true,
},
webpack(config, options) {
if (process.env.NODE_ENV !== 'development') config.cache = false
config.output.sourceMapFilename =
process.env.NODE_ENV === 'development' ? '[name].js.map' : '[file].map'
return config
},
}
return withSentryConfig(await nxConfig(phase), {
excludeServerRoutes: [/\/api\/proxy.*$/],
autoInstrumentMiddleware: false,
unstable_sentryWebpackPluginOptions: {
sourcemaps: {
disable: true,
},
},
})
- Turn off source map in sentry but activate "productionBrowserSourceMaps" in nextjs
- use "sentry cli sourcemaps inject" to inject debugId into source files.
- Deploy image and upload source files to sentry using "sentry cli sourcemaps upload"
- Trigger error
- Result?
Result?
Expected Result
See unminified stack trace
Actual Result
Nothing
Metadata
Metadata
Assignees
Projects
Status
Waiting for: Community