After reading some Github issues I have added this webpack plugin into my next-config.js
new SentryWebpackPlugin({
include: ['.', '.next'],
ignoreFile: '.sentrycliignore',
ignore: ['node_modules', 'webpack.config.js'],
configFile: 'sentry.properties',
release: buildId,
urlPrefix: '~/_next',
}),
After adding this my source maps are being uploaded to the sentry. (Screenshot below)
But still, in error, it is not showing the source map and showing chunks only. How to fix this?
EDIT 1 :
After adding
config.devtool = 'source-map';
This is what Sentry is showing.



devtoolsetting?