nextjs - 💡(How to fix) Fix Firefox shows forward-logs-shared.ts as source in console for all next logs [8 comments, 6 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#87822Fetched 2026-04-08 02:06:02
View on GitHub
Comments
8
Participants
6
Timeline
14
Reactions
0
Author
Assignees
Timeline (top)
commented ×8subscribed ×2assigned ×1issue_type_added ×1

Code Example

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:15 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_ARM64_T6041
  Available memory (MB): 65536
  Available CPU cores: 16
Binaries:
  Node: 24.11.0
  npm: 11.6.2
  Yarn: 1.22.22
  pnpm: 9.9.0
Relevant Packages:
  next: 16.1.1 // Latest available version is detected (16.1.1).
  eslint-config-next: N/A
  react: 19.2.3
  react-dom: 19.2.3
  typescript: 5.9.3
Next.js Config:
  output: N/A
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/kriskratz/nextjs-console-log

To Reproduce

  1. Start the application (next dev), note: code is a fresh install of Next v16.1.1
  2. Open application in Firefox
  3. Click anywhere on page to generate log
  4. View logs in DevTools > Console

Current vs. Expected behavior

Firefox console logs all show "forward-logs-shared.ts" as source, but it should show "page.tsx" as the source.

Started with Next v16.

Chrome logs correctly show "page.tsx" as the source.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:15 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_ARM64_T6041
  Available memory (MB): 65536
  Available CPU cores: 16
Binaries:
  Node: 24.11.0
  npm: 11.6.2
  Yarn: 1.22.22
  pnpm: 9.9.0
Relevant Packages:
  next: 16.1.1 // Latest available version is detected (16.1.1).
  eslint-config-next: N/A
  react: 19.2.3
  react-dom: 19.2.3
  typescript: 5.9.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

I tested the code on a fresh install of Next with a clean install of Firefox.

extent analysis

TL;DR

The issue with incorrect source logging in Firefox can be addressed by investigating the differences in how Next.js handles source mapping between Chrome and Firefox.

Guidance

  • Verify that the issue is specific to Firefox by testing with other browsers to confirm if the problem is browser-specific.
  • Check the Next.js documentation and source code for any known issues or differences in how source maps are handled between browsers.
  • Investigate the forward-logs-shared.ts file to understand why it's being reported as the source instead of page.tsx.
  • Review the browser's DevTools settings and configuration to ensure that source maps are enabled and properly configured.

Example

No specific code example can be provided without further investigation, but checking the Next.js configuration and source maps settings might look something like this:

// next.config.js
module.exports = {
  //... other configurations ...
  compilerOptions: {
    //... other options ...
    sourceMap: true, // Ensure source maps are enabled
  },
}

Notes

The issue seems to be related to how Next.js handles source mapping in Firefox, but without more information or a deeper dive into the code, it's difficult to provide a definitive solution. The fact that Chrome logs the correct source suggests a potential browser-specific issue.

Recommendation

Apply workaround: Investigate and adjust Next.js source map configurations and settings to ensure compatibility with Firefox, as the issue seems to be browser-specific and not a version-related problem with Next.js itself.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - 💡(How to fix) Fix Firefox shows forward-logs-shared.ts as source in console for all next logs [8 comments, 6 participants]