Files
Mana-Loop/docs/task3/subtask_2_progress.md
T
Refactoring Agent 3bcf20636c
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 25s
Fix DebugTab crash (Bug 4): Correct GameStore import path
2026-04-27 12:31:06 +02:00

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 GameStore from @/lib/game/types, which does not export GameStore. The correct export is from @/lib/game/store.ts.
  • Fixed imports in:
    • src/components/game/tabs/DebugTab.tsx
    • src/components/game/debug/GameStateDebug.tsx
    • src/components/game/debug/SkillDebug.tsx
    • src/components/game/debug/ElementDebug.tsx
    • src/components/game/debug/AttunementDebug.tsx
    • src/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.