Skip to content

Next.js: Some stack frame's source maps are not uploaded by default. #7432

Closed
@lforst

Description

@lforst

Problem Statement

The Next.js build output contains among other things files that follow the naming scheme .next/static/chunks/{number}-{hash}.js(.map)?.

We don't upload these files for source maps resolving because they can get very large and make builds take several minutes because we have to wait for the upload.

The files in question contain library/framework code (e.g. Sentry SDK code, Next.js internal code, or code that belongs to other third-party libraries). In most cases, this means that having these files not be resolved is actually not that bad because errors don't originate from these locations very often. However, if they do, it is basically impossible to tell where errors come from.

Additionally, the unresolved stack frames will result in very ugly banners on the issue page:

Screenshot 2023-03-13 at 11 46 12

Users can use the widenClientFileUpload: true option to upload these files, but it is not immediately obvious that this will resolve the problem.

Solution Brainstorm

We can think about the following:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions