1.0 KiB
1.0 KiB
Sub-Task 2 Progress: DebugTab Crash Fix
Status: Completed
Completed Steps
- Reproduce DebugTab crash and check browser/console errors
- Identify root cause of crash (wrong import of GameStore from @/lib/game/types instead of @/lib/game/store)
- Implement fix (update imports in all debug components)
- Test DebugTab renders without errors (TypeScript errors resolved)
- Commit and push changes
Notes
- Root cause: All debug components imported
GameStorefrom@/lib/game/types, which does not exportGameStore. The correct export is from@/lib/game/store.ts. - Fixed imports in:
src/components/game/tabs/DebugTab.tsxsrc/components/game/debug/GameStateDebug.tsxsrc/components/game/debug/SkillDebug.tsxsrc/components/game/debug/ElementDebug.tsxsrc/components/game/debug/AttunementDebug.tsxsrc/components/game/debug/GolemDebug.tsx
- PactDebug.tsx still has errors but uses a different store (GameCoordinatorStore) and is not part of the main DebugTab crash.