Build Error Fix
Incrementally fixes TypeScript and build errors.
Procedure
Run Build
npm run build # or pnpm buildAnalyze Errors
- Group by file
- Sort by severity
Fix Each Error
- Check error context (5 lines before and after)
- Describe the problem
- Suggest and apply fix
- Re-run build
- Confirm error is resolved
- If one attempt does not resolve it, switch to the systematic-debugging skill's 4 phases (no repeated guess-based fixes)
Stop Conditions
- When a fix causes new errors
- When the same error persists after 3 attempts
- On user request
Summary Output
- Number of errors fixed
- Number of remaining errors
- Newly introduced errors
Principles
- Fix only one error at a time
- Always re-verify build after each fix
- Consider rollback if new errors are introduced