Skip to content

next dev / next build strips compile error details — only shows count summary #2013

@uditgoenka

Description

@uditgoenka

Problem

When running next dev or next build through RTK, compile error details (file paths, line numbers, error messages, stack traces) are completely stripped. The output only shows a summary line like:

Next.js
Errors: 1 | Warnings: 0

No information about what the error is or where it occurs. This makes it impossible for AI coding agents to diagnose and fix failures without falling back to rtk proxy.

Steps to Reproduce

  1. Introduce a syntax or type error in a Next.js project
  2. Run next dev --turbopack or next build (routed through RTK)
  3. Observe that only the count summary is shown — zero diagnostic detail

Expected Behavior

Error details should be preserved in the output. At minimum:

  • File path and line number of the error
  • The error message itself
  • Enough context for an AI agent (or human) to locate and fix the issue

Workaround

rtk proxy npx next dev bypasses filtering and shows full output, but this defeats the purpose of RTK's automatic hook integration.

Difference from #2010

Issue #2010 covers startup port information being swallowed. This issue is about compile error diagnostics being stripped — the error details that are critical for debugging are lost, not just informational startup lines.

Environment

  • RTK version: latest (installed via hook)
  • Next.js: 15.x with Turbopack
  • OS: macOS (Darwin 25.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions