[Bug] Memory type missing — breaks MemorySlotPicker, prestigeStore #9

Closed
opened 2026-05-13 10:05:07 +02:00 by Anexim · 3 comments
Owner

Bug: Memory type is not exported from @/lib/game/types

Impact

TypeScript errors in:

  • src/components/game/shared/MemorySlotPicker.tsx (line 12)
  • src/lib/game/store/prestigeStore.ts (line 6)

Error Messages

src/components/game/shared/MemorySlotPicker.tsx(12,15): error TS2305: Module '"@/lib/game/types"' has no exported member 'Memory'.
src/lib/game/store/prestigeStore.ts(6): error TS2305: Module '"@/lib/game/types"' has no exported member 'Memory'.

Root Cause

The Memory type used in MemorySlotPicker (where memories are stored as { skillId, level, tier, upgrades }) and prestigeStore is not defined or exported from the types barrel at src/lib/game/types.ts.

To Fix

Define a Memory interface (likely { skillId: string; level: number; tier: number; upgrades: string[] }) in the types directory and export it from both its module and the src/lib/game/types.ts barrel.

Verification

After fix, both import sites should compile without errors.

## Bug: `Memory` type is not exported from `@/lib/game/types` ### Impact TypeScript errors in: - `src/components/game/shared/MemorySlotPicker.tsx` (line 12) - `src/lib/game/store/prestigeStore.ts` (line 6) ### Error Messages ``` src/components/game/shared/MemorySlotPicker.tsx(12,15): error TS2305: Module '"@/lib/game/types"' has no exported member 'Memory'. src/lib/game/store/prestigeStore.ts(6): error TS2305: Module '"@/lib/game/types"' has no exported member 'Memory'. ``` ### Root Cause The `Memory` type used in `MemorySlotPicker` (where memories are stored as `{ skillId, level, tier, upgrades }`) and `prestigeStore` is not defined or exported from the types barrel at `src/lib/game/types.ts`. ### To Fix Define a `Memory` interface (likely `{ skillId: string; level: number; tier: number; upgrades: string[] }`) in the types directory and export it from both its module and the `src/lib/game/types.ts` barrel. ### Verification After fix, both import sites should compile without errors.
Anexim added the ai:todo label 2026-05-13 10:05:07 +02:00
n8n-gitea was assigned by Anexim 2026-05-13 10:05:07 +02:00
Author
Owner

Progress update: Memory interface defined in src/lib/game/types/game.ts and re-exported from src/lib/game/types.ts. Fixes TS2305 in MemorySlotPicker.tsx and prestigeStore.ts.

Progress update: `Memory` interface defined in `src/lib/game/types/game.ts` and re-exported from `src/lib/game/types.ts`. Fixes TS2305 in MemorySlotPicker.tsx and prestigeStore.ts.
Anexim added the ai:blocked label 2026-05-16 13:34:01 +02:00
Anexim removed the ai:blocked label 2026-05-17 07:59:12 +02:00
Author
Owner

Fixed: Added Memory interface to types.ts and updated import in prestigeStore.ts. Verified no errors in types.tsx or store files. #9 resolved

Fixed: Added Memory interface to types.ts and updated import in prestigeStore.ts. Verified no errors in types.tsx or store files. #9 resolved
Author
Owner

Official closure: Issue #9 resolved with memory type fix (interface defined in src/lib/game/types/game.ts and re-exported). All dependent files now import correctly.

Official closure: Issue #9 resolved with memory type fix (interface defined in src/lib/game/types/game.ts and re-exported). All dependent files now import correctly.
Anexim removed the ai:todo label 2026-05-18 10:19:21 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#9