react-build
Fix React build failures (Vite, webpack, Next.js, CRA, Parcel, esbuild, Bun) incrementally — JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types. Invokes the react-build-resolver agent for minimal, surgical fixes.
- Kind
- Prompt
- Works with
- Claude Code, Codex
- Languages
- TypeScript / JavaScript
- Source
- affaan-m/ECC @ d3b8a3e90890
- Path
- commands/react-build.md
- License
- MIT
- Jobs
- Debugging
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# React Build and Fix This command invokes the **react-build-resolver** agent to incrementally fix React build errors with minimal changes. ## What This Command Does 1. **Detect Build System**: Identify Vite, webpack, Next.js, CRA, Parcel, esbuild, or Bun 2. **Run Build**: Execute the project's build script 3. **Parse Errors**: Group by layer (TypeScript / bundler config / runtime / hydration) 4. **Fix Incrementally**: One error at a time, re-running build after each change 5. **Report Summary**: Show what was fixed and what remains ## When to Use Use `/react-build` when: - `npm run build` (or pnpm/yarn/bun equivalent) fails - JSX/TSX compile errors after a TypeScript or React upgrade - Next.js hydration mismatch errors at runtime - Server/Client Component boundary errors in App Router - After installing or upgrading `react`, `react-dom`, `@types/react`, or a bundler - Missing types or "module not found" errors involving React ## Scope This command owns **React build/bundler/runtime hydration** failures. For pure TypeScript type errors with no React involvement, use `/build-fix` (generic) instead. ## Diagnostic Commands Run ```bash # Project build script (preferred) …