π¨ DASHBOARD DEBUGGING CHECKLIST
YOUR ISSUEβ
"Loading 6D Dashboard... NEVER LOADS"
π― IMMEDIATE ACTIONβ
Step 1: Test React Renderingβ
cd apps/6d-dashboard
npm run dev
What to expect:
- If it says "β React is rendering correctly!" β β React works, problem is in Dashboard
- If it says "Loading..." β β React not loading, check errors
- If you see red error box β β Error during init, copy the error
π CHECK THESE FIRSTβ
Check 1: Browser Console Errorsβ
- Press
F12orCmd+Option+I - Click Console tab
- Look for RED text - copy it
Check 2: Network Issuesβ
- Click Network tab
- Look for red entries or 404 errors
- Are any requests timing out?
Check 3: Local Storageβ
// Paste in console:
localStorage.clear();
sessionStorage.clear();
location.reload();
π IF YOU SEE AN ERRORβ
| Error Message | Likely Cause | Fix |
|---|---|---|
Cannot find module 'X' | Import path broken | Check path in vite.config.ts @ alias |
Redux store error | Missing selector | Check sixd.selectors.ts exports all |
THREE.js error | 3D rendering broken | Disable SixDScene temporarily |
Cannot read property X of undefined | Component prop missing | Check component defaults |
Timeout | Async never completes | Check ThorSixDClient methods return |
π οΈ QUICK FIXES TO TRYβ
Fix 1: Clear Cache & Rebuildβ
cd apps/6d-dashboard
rm -rf node_modules/.vite
npm run build
npm run dev
Fix 2: Check Node Versionβ
node --version
# Should be v18+ or v20+
Fix 3: Check Vite Configβ
# In apps/6d-dashboard, vite.config.ts should have:
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
}
Fix 4: Verify Main Files Existβ
# These MUST exist:
ls src/main.tsx
ls src/app/router.tsx
ls src/app/routes/dashboard-6d/index.tsx
ls src/data/sixd.state.ts
π§ ADVANCED DIAGNOSTICSβ
If You Still Can't Find the Issue:β
- Check Build Output
npm run build
# Copy any error messages
- Check TypeScript
npm run type-check
# Should complete with no errors
- Enable Debug Logging
// In main.tsx, uncomment:
localStorage.setItem("DEBUG", "true");
- Simplify Dashboard
- Comment out SixDScene import
- Comment out LcarsLauncher
- Remove all complex components
- Add back one-by-one
π‘ COMMON CULPRITSβ
-
Three.js Bloom Effect β Hangs rendering
- Solution: Disable Bloom, use simple 2D placeholder
-
Redux State Selectors β Missing selector causes error
- Solution: Verify all selectors exist in sixd.selectors.ts
-
CSS Theme Variables β Missing Aurora variables
- Solution: Verify generateAuroraCss() in main.tsx
-
Circular Imports β Module resolution fails
- Solution: Check for
@/componentsimporting from@/app
- Solution: Check for
-
Vite Alias β Path
@not resolving- Solution: Check vite.config.ts alias configuration
π WHEN REPORTING THE ISSUEβ
Please provide:
- Exact error message (copy from console/error box)
- Browser used (Chrome, Firefox, Safari)
- Node version (
node --version) - Package manager (npm, yarn, pnpm)
- Output of this command:
npm run build 2>&1 | head -50
β VERIFICATION CHECKLISTβ
After fixes, confirm:
-
npm run devstarts without errors - Console has no red errors
- Page loads (not stuck on spinner)
- DebugTest shows "β React is rendering correctly!"
- Dashboard shows 6D ring
- Left sidebar with discipline pills works
- Launcher button expands/collapses
- Clicking items in launcher works
π IF ALL ELSE FAILSβ
Nuclear option - rebuild everything:
cd apps/6d-dashboard
# Remove everything
rm -rf node_modules package-lock.json dist .vite
# Reinstall fresh
npm install
# Rebuild
npm run build
# Test
npm run dev
π STATUS DASHBOARDβ
π΄ Before Fix: "Loading 6D Dashboard..." β never loads
π‘ Testing Phase: Debug component shows β React is working
π’ Final: Dashboard renders 3D ring β β
Fixed!
Last Updated: October 21, 2025
Status: π₯ ACTIVELY DEBUGGING
Try the steps above and report back with what you find!