Project Health Check
Run all checks to verify project health.
Commands to Run
1. Type Checking
cd /Users/tyrelle/Desktop/KardashevNetwork && npx tsc --noEmit
2. Linting
cd /Users/tyrelle/Desktop/KardashevNetwork && npm run lint
3. Build
cd /Users/tyrelle/Desktop/KardashevNetwork && npm run build
Run All Checks
Execute all checks sequentially and report results:
cd /Users/tyrelle/Desktop/KardashevNetwork && npm run lint && npx tsc --noEmit && npm run build
Expected Output
Success
- Lint: No warnings or errors
- TypeScript: No type errors
- Build: "Compiled successfully" with route summary
Common Issues
| Error | Solution |
|---|---|
| "Cannot find module" | Run npm install |
| Type error in component | Check prop types match usage |
| ESLint warning | Fix or add disable comment with justification |
| Build fails | Check for syntax errors, missing imports |
Quick Fixes
Missing dependencies
npm install
Clear build cache
rm -rf .next && npm run build
Fix auto-fixable lint issues
npm run lint -- --fix
Checklist
- Run lint - no errors
- Run type check - no errors
- Run build - completes successfully
- Report any issues found
- Suggest fixes for any failures