Skip to content

bug: pnpm build incorrectly applies Next.js filter on Vite projects, reporting false errors #454

@sokol-matija

Description

@sokol-matija

Bug Description

rtk pnpm build hardcodes the Next.js output filter for all pnpm build commands, regardless of the actual framework. This causes false error reports on Vite (and likely other non-Next.js) projects.

Steps to Reproduce

  1. Have a Vite project (not Next.js)
  2. Run rtk pnpm build — build succeeds (e.g. ✓ built in 5.06s)
  3. RTK reports: Errors: 1 | Warnings: 0incorrect
  4. Run bare pnpm build — no errors shown, only real warnings

Expected Behavior

RTK should detect the build tool being used, or fall back to a generic errors-only passthrough (like rtk err pnpm build) when the framework is not Next.js.

Actual Behavior

RTK always routes pnpm build through next_cmd filter (PnpmCommands::Build -> next_cmd::run), which misparses Vite output and falsely counts warnings or informational messages as errors.

Environment

  • RTK version: 0.27.2
  • Build tool: Vite v5.4.21
  • Package manager: pnpm

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions