Skip to content

[MEDIUM] check-types OOM on app/ directory needs resolution #311

@0xbbjoker

Description

@0xbbjoker

Summary

The check-types script runs out of memory when type-checking the app/ directory, providing no type safety for the largest part of the codebase.

Impact

  • Largest directory (app/) has zero type checking
  • All App Router pages, API routes, and layouts are unchecked
  • Makes verification checklist unreliable (can't verify "No TypeScript errors")

Recommended Fix

  1. Increase Node.js memory limit: NODE_OPTIONS='--max-old-space-size=8192' bun run check-types
  2. Split type-checking by directory: check app/, components/, lib/ separately
  3. Use tsc --incremental for faster subsequent checks
  4. Investigate if specific files/imports cause memory explosion
  5. Consider project references (tsconfig paths) to isolate type-checking scope

Source

Identified by GPT Scope Analyst agent during comprehensive plan review (2026-02-06).

Metadata

Metadata

Assignees

No one assigned

    Labels

    mediumMedium prioritytech-debtTechnical debt and maintenance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions