Troubleshooting Guide¶
โก Quick Fixes¶
Framework not working?
NEW: Get instant help with explain command./ai-sdlc explain "your specific error or issue"
# Examples:
./ai-sdlc explain "ESLint parsing error"
./ai-sdlc explain "pre-commit hook failed"
./ai-sdlc explain "Husky not working"
Tests not generating automatically?
- Check API keys in
.env
file - Make sure you're changing front-end files (
.tsx
,.jsx
,.ts
,.js
) - Verify:
./ai-sdlc validate
Build failing?
๐ซ Common Setup Issues¶
"Node.js is required"
- Install Node.js 18+ from nodejs.org
- Check:
node --version
"Must be run in a Git repository"
"Setup script fails"
๐ค Git Hooks Issues¶
Code not formatting on commit?
Want to skip hooks once?
๐ Emergency Reset¶
Nothing works? Start over:
If missing, run setup again¶
./auto-setup.sh
**Too many linting errors**
```bash
# Fix automatically
npm run lint:fix
# Or format code
npm run format
Status Checks Fail¶
Check what's wrong:
AI Testing Issues (With API Keys)¶
Vitest Environment Error¶
Error: "jsdom environment not found"
# Install the missing jsdom package (should already be installed)
npm install --save-dev jsdom
## ๐ API Key Issues
**"API key not found"**
1. Check your `.env` file exists
2. Verify your OpenAI key starts with `sk-`
3. Make sure GitHub token starts with `ghp_`
```bash
# Check API keys
cat .env | grep -E "OPENAI|GITHUB"
โ Need More Help?¶
Still having issues?
- Run:
./ai-sdlc validate
- Check the error messages
- Try the emergency reset below
Contact Support: - Technical: CTO (Damon DeCrescenzo) - Setup help: See Quick Start Guide
Remember: The framework is designed to "just work" - if something seems complicated, it's probably a simple fix!