Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
productionBrowserSourceMaps doesn't work with profiler | GoodFirstPicks

productionBrowserSourceMaps doesn't work with profiler

vercel/next.js 2 comments 1mo ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeNext.jsTypeScriptReact

Why this is a good first issue

Profiler component names not showing correctly with productionBrowserSourceMaps enabled.

AI Summary

The issue involves incorrect component name display in React Profiler when productionBrowserSourceMaps is enabled. This appears to be a source map processing issue during production builds with profiling enabled. The problem is reproducible but requires understanding of both Next.js build process and React's profiling internals.

Issue Description

What version of Next.js are you using?

latest in package.json at time of submission - 10.1.3

What version of Node.js are you using?

14.16.0

What browser are you using?

chrome

What operating system are you using?

macOS

How are you deploying your application?

next build --profile; next start (local in prod mode)

Describe the Bug

Starting with npx create-next-app --example with-typescript with-typescript-app, I added:

module.exports = {
  productionBrowserSourceMaps: true,
}

to next.config.js, and I altered npm run build to run:

    "build": "next build --profile",

Then when I did a build and a start, the React Profiler doesn't show the proper names of the components: image

Expected Behavior

In prod mode with --profile and productionSourceMaps, I expect profiler to show proper names of components:

image

To Reproduce

See above, I used with-typescript and altered two files.

GitHub Labels

bug

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • profiler integration
  • source map generation
Loading labels...

Details

Points10 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedno