1

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)

enter image description here

But still, in error, it is not showing the source map and showing chunks only. How to fix this?

enter image description here

EDIT 1 :

After adding

config.devtool = 'source-map';

This is what Sentry is showing.

enter image description here

2
  • what's your webpack devtool setting? Commented Aug 25, 2022 at 11:55
  • After adding devtool to 'source-map'. There is some changes in source maps but still it is minified by webpack, Changed Screenshot is added in original question in EDIT 1 Commented Aug 25, 2022 at 18:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.