Skip to main content

Frames from static/chunks/ folder are not source mapped

Updated over a month ago

Issue

Events from my NextJS app from the static/chunks/ folder are not source mapped by Sentry.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • Error Monitoring

  • Source Maps

  • NextJS SDK

Resolution

Generally, the files in static/chunks/ only contain Next.js or third-party code and are not uploaded to Sentry by default.

To upload all of the files and source maps, including ones from third-party packages, set the widenClientFileUpload option to true in your next.config.js file:

export default withSentryConfig(nextConfig, {
    widenClientFileUpload: true,
});
Did this answer your question?