Skip to main content

🚨 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​

  1. Press F12 or Cmd+Option+I
  2. Click Console tab
  3. Look for RED text - copy it

Check 2: Network Issues​

  1. Click Network tab
  2. Look for red entries or 404 errors
  3. Are any requests timing out?

Check 3: Local Storage​

// Paste in console:
localStorage.clear();
sessionStorage.clear();
location.reload();

πŸ“‹ IF YOU SEE AN ERROR​

Error MessageLikely CauseFix
Cannot find module 'X'Import path brokenCheck path in vite.config.ts @ alias
Redux store errorMissing selectorCheck sixd.selectors.ts exports all
THREE.js error3D rendering brokenDisable SixDScene temporarily
Cannot read property X of undefinedComponent prop missingCheck component defaults
TimeoutAsync never completesCheck 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:​

  1. Check Build Output
npm run build
# Copy any error messages
  1. Check TypeScript
npm run type-check
# Should complete with no errors
  1. Enable Debug Logging
// In main.tsx, uncomment:
localStorage.setItem("DEBUG", "true");
  1. Simplify Dashboard
    • Comment out SixDScene import
    • Comment out LcarsLauncher
    • Remove all complex components
    • Add back one-by-one

πŸ’‘ COMMON CULPRITS​

  1. Three.js Bloom Effect β†’ Hangs rendering

    • Solution: Disable Bloom, use simple 2D placeholder
  2. Redux State Selectors β†’ Missing selector causes error

    • Solution: Verify all selectors exist in sixd.selectors.ts
  3. CSS Theme Variables β†’ Missing Aurora variables

    • Solution: Verify generateAuroraCss() in main.tsx
  4. Circular Imports β†’ Module resolution fails

    • Solution: Check for @/components importing from @/app
  5. Vite Alias β†’ Path @ not resolving

    • Solution: Check vite.config.ts alias configuration

πŸ“ž WHEN REPORTING THE ISSUE​

Please provide:

  1. Exact error message (copy from console/error box)
  2. Browser used (Chrome, Firefox, Safari)
  3. Node version (node --version)
  4. Package manager (npm, yarn, pnpm)
  5. Output of this command:
npm run build 2>&1 | head -50

βœ… VERIFICATION CHECKLIST​

After fixes, confirm:

  • npm run dev starts 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!