Troubleshooting Guide, - hokumcangus/taste-of-aloha GitHub Wiki
🛠️ Troubleshooting Guide
This guide covers common errors encountered during development and their verified solutions.
🐳 Docker Issues
Symptoms: 'docker' not recognized or Daemon not running
Fixes:
- Ensure Docker Desktop is running.
- Verify connection in PowerShell:
docker info. - If using WSL2, ensure your distro is enabled in Docker Settings > Resources > WSL Integration.
🎨 Frontend & Tailwind Issues
1. "Failed to load PostCSS config"
- Add
"type": "module"toapps/web/package.json. - Ensure
apps/web/postcss.config.jsusesexport defaultsyntax.
2. Tailwind v4 Plugin Error
- Install:
npm install -D @tailwindcss/postcssinsideapps/web. - Update
postcss.config.jsto use'@tailwindcss/postcss': {}.
🔌 Backend & API Issues
1. CORS Policy Blocked
Ensure apps/backend/index.js includes app.use(cors()); before your routes.
2. Prisma Error P2021 (Table does not exist)
Run these commands to sync your Docker database:
docker exec taste-of-aloha-backend npx prisma db push --accept-data-loss
docker exec taste-of-aloha-backend node prisma/menu.seed.js
Task | Command
-- | --
Check Backend Health | Invoke-RestMethod http://localhost:3000/health
Check Menu Data | Invoke-RestMethod http://localhost:3000/api/menu
View Backend Logs | docker logs --tail 50 taste-of-aloha-backend