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

22 lines
1.0 KiB
Markdown

# Sub-Task 2 Progress: DebugTab Crash Fix
## Status: Completed
## Completed Steps
- [x] Reproduce DebugTab crash and check browser/console errors
- [x] Identify root cause of crash (wrong import of GameStore from @/lib/game/types instead of @/lib/game/store)
- [x] Implement fix (update imports in all debug components)
- [x] Test DebugTab renders without errors (TypeScript errors resolved)
- [x] 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.