Solutions for common issues across all pipelines.
- Quick Fixes
- Installation Issues
- Build Issues
- Runtime Issues
- Pipeline-Specific Issues
- Ralph QA Issues
- Deployment Issues
- Getting Help
Most issues can be resolved with these steps:
# Fix dependency issues
rm -rf node_modules package-lock.json
npm install --legacy-peer-deps
# Fix port conflicts
PORT=3001 npm run dev
# Fix Expo cache
npx expo start -c
# Fix TypeScript cache
rm -rf .next && npm run buildSymptom: npm install exits with errors
Solutions:
-
Fix the dependency conflict (recommended):
npm ls --all # Identify the conflict # Update package.json versions to resolve
-
Clear npm cache:
npm cache clean --force npm install
-
Check Node version:
node --version # Need 18+ -
Use fresh install:
rm -rf node_modules package-lock.json npm install
IMPORTANT: Do NOT use --legacy-peer-deps, --force, or --ignore-engines flags. These are forbidden by the Local Run Proof Gate and will cause verification failure. Always fix the actual dependency versions instead.
Symptom: Module not found errors during build or runtime
Solutions:
-
Reinstall dependencies:
npm install
-
Install specific package:
npm install <missing-package>
-
Check for typos in imports
-
Verify package is in package.json
Symptom: Permission errors during npm install
Solutions:
-
Fix npm permissions (macOS/Linux):
sudo chown -R $(whoami) ~/.npm
-
Use Node Version Manager (nvm):
nvm install 18 nvm use 18
Symptom: Type errors during build
Solutions:
-
Check specific error location
-
Common fixes:
// Missing type const data: any = ... // Null check if (data) { ... } // Optional chaining data?.property
-
Regenerate types:
npm run typecheck
Symptom: npm run build doesn't complete
Solutions:
-
Clear cache:
rm -rf .next npm run build
-
Check for infinite loops in code
-
Increase Node memory:
NODE_OPTIONS=--max-old-space-size=4096 npm run build
Symptom: JavaScript heap out of memory
Solutions:
-
Increase memory limit:
export NODE_OPTIONS=--max-old-space-size=4096 npm run build -
Check for memory leaks (large imports, circular dependencies)
Symptom: EADDRINUSE error
Solutions:
-
Use different port:
PORT=3001 npm run dev
-
Kill process on port:
# macOS/Linux lsof -i :3000 | grep LISTEN | awk '{print $2}' | xargs kill -9 # Windows netstat -ano | findstr :3000 taskkill /PID <PID> /F
Symptom: White screen in browser
Solutions:
-
Check browser console (F12)
-
Verify build succeeded:
npm run build
-
Check for hydration errors (SSR mismatch)
-
Clear browser cache
Symptom: curl returns error or timeout
Solutions:
-
Verify server is running:
curl http://localhost:8080/health
-
Check logs for errors
-
Verify environment variables:
cat .env
-
Check firewall settings
Symptom: process.env.X is undefined
Solutions:
-
Create .env file:
cp .env.example .env
-
Check .env format:
KEY=value # No spaces around = -
Restart dev server after .env changes
-
For Next.js, use NEXTPUBLIC prefix for client-side variables
npm install -g expo-cli- Ensure device and computer are on same network
- Try tunnel mode:
npx expo start --tunnel
npx expo start -c- Check API keys in
.env - Verify RevenueCat dashboard setup
- Test in sandbox mode first
- Install wallet extension (Phantom, etc.)
- Check network configuration (devnet vs mainnet)
- Verify wallet adapter setup
# Install browsers
npx playwright install
# Run with debug
npx playwright test --debug- Check 'use client' directive on component
- Verify motion import:
import { motion } from 'framer-motion'
- Check
src/index.tshas health endpoint - Verify server is running on correct port
- Check input format matches expected schema
- Verify API keys are configured
- Check error handling in code
- Check all required env vars are set
- Look for missing dependencies
- Check for syntax errors
- Verify
.claude-plugin/plugin.jsonexists - Check plugin.json is valid JSON
- Restart Claude Code
- Check event name case:
PostToolUse(notpostToolUse) - Verify regex pattern matches files
- Check script is executable
- Check manifest.json is valid
- Verify server builds:
npm run build - Check transport configuration
- Complete the process at base.dev
- Ensure domain matches deployed URL
- Copy values exactly to minikit.config.ts
- Check manifest at
/.well-known/farcaster.json - Verify all required fields
- Check image dimensions
- Complete account association first
- Deploy to production (not preview)
- Allow time for Base to index
- Check specific violations in audit report
- Common issues:
- Missing 'use client' where needed
- Barrel imports (use direct imports)
- Accessibility violations
- Check all pages have unique titles
- Verify meta descriptions
- Add alt text to images
Check the verdict file:
cat runs/<date>/<run-id>/polish/ralph_final_verdict.mdCommon issues:
| Issue | Solution |
|---|---|
| Missing error handling | Add try/catch blocks |
| Accessibility violations | Add aria-labels, alt text |
| TypeScript errors | Fix type issues |
| Missing research | Add substantive content |
| Test failures | Fix failing tests |
After 3 iterations (agent/plugin) or 20 passes (website/dapp), Ralph stops.
If stuck:
- Check blocking issues
- Fix manually
- Re-run Ralph:
/factory ralph <path>
Focus on highest-impact issues:
- CRITICAL issues first
- Then HIGH
- Then MEDIUM
-
Check build locally:
npm run build
-
Check vercel.json configuration
-
Verify environment variables in Vercel dashboard
Common reasons:
- Missing privacy policy
- Incomplete metadata
- Guideline violations
Check LAUNCH_CHECKLIST.md for requirements.
- Check logs in cloud provider
- Verify all env vars are set
- Check memory/CPU limits
Before seeking help, gather:
- Error message (full text)
- Pipeline used
- Input description
- Steps to reproduce
- Node/npm versions
| Pipeline | Log Location |
|---|---|
| All | runs/<date>/<run-id>/ |
| Ralph | ralph_final_verdict.md |
| Skills | audits/*.md |
| MCP | mcp-logs/ |
Open a GitHub Issue with:
## Bug Report
### Pipeline
[app-factory / dapp-factory / etc.]
### Input
[What you asked Claude to build]
### Error
[Full error message]
### Steps to Reproduce
1. ...
2. ...
### Environment
- Node: [version]
- npm: [version]
- OS: [Windows/macOS/Linux]- FAQ.md - Common questions
- GETTING_STARTED.md - First build guide
- API.md - Command reference
App Factory Troubleshooting v1.0.0: Solutions for common issues.