rtk-ai / rtk-ai/rtk

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

Open
#2,013 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:cli bug needs-reproduction priority:high
Dominant language
Rust
Stars
81.1k
Forks
5.1k
Avg merge
4d 21h
Merged PRs (30d)
35

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with a Next.js 15.x project using next dev --turbopack and next build through the RTK hook, then inspect RTK's command-output filtering path. Compare the routed output with rtk proxy npx next dev; done means file paths, line numbers, error messages, and useful diagnostic context remain visible while the summary is retained.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, rust
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.