# Build and Fix Incrementally fix TypeScript and build errors: 1. Run `pnpm typecheck` or `pnpm build` (this repo uses pnpm + Turbo + Vite) 2. Parse error output: - Group by file - Sort by severity 3. For each error: - Show 5 lines of context - Explain the issue - Apply a minimal fix - Re-run the failing command 4. Stop if: - The fix introduces new errors - The same error persists after 3 attempts - The user asks to pause 5. Show summary of fixed / remaining / new errors Fix one error at a time. Do not refactor. Invoke **build-error-resolver** when useful.