fix: Missing types import in upgrade-effects.types.ts — build error #34

Closed
opened 2026-05-18 15:57:52 +02:00 by Anexim · 1 comment
Owner

Severity: Critical

File: src/lib/game/effects/upgrade-effects.types.ts (line 4)

Problem: The file imports SkillUpgradeChoice and SkillUpgradeEffect from './types', but there is no types.ts file in the effects/ directory. The file src/lib/game/effects/types.ts does not exist.

Impact: TypeScript compilation error. The entire upgrade effects type system is broken.

Fix: Either:

  1. Create src/lib/game/effects/types.ts with the missing type definitions, or
  2. Remove the dead import and the ActiveUpgradeEffect interface (which is already dead code since getActiveUpgrades returns [])
**Severity:** Critical **File:** `src/lib/game/effects/upgrade-effects.types.ts` (line 4) **Problem:** The file imports `SkillUpgradeChoice` and `SkillUpgradeEffect` from `'./types'`, but there is no `types.ts` file in the `effects/` directory. The file `src/lib/game/effects/types.ts` does not exist. **Impact:** TypeScript compilation error. The entire upgrade effects type system is broken. **Fix:** Either: 1. Create `src/lib/game/effects/types.ts` with the missing type definitions, or 2. Remove the dead import and the `ActiveUpgradeEffect` interface (which is already dead code since `getActiveUpgrades` returns `[]`)
Anexim added the ai:todo label 2026-05-18 15:57:52 +02:00
n8n-gitea was assigned by Anexim 2026-05-18 15:57:52 +02:00
Author
Owner

Fixed: Removed dead import of SkillUpgradeChoice/SkillUpgradeEffect from non-existent ./types file in upgrade-effects.types.ts. Replaced with inline string type for the effect field.

Fixed: Removed dead import of SkillUpgradeChoice/SkillUpgradeEffect from non-existent ./types file in upgrade-effects.types.ts. Replaced with inline string type for the effect field.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#34