fix: Missing types import in upgrade-effects.types.ts — build error #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Critical
File:
src/lib/game/effects/upgrade-effects.types.ts(line 4)Problem: The file imports
SkillUpgradeChoiceandSkillUpgradeEffectfrom'./types', but there is notypes.tsfile in theeffects/directory. The filesrc/lib/game/effects/types.tsdoes not exist.Impact: TypeScript compilation error. The entire upgrade effects type system is broken.
Fix: Either:
src/lib/game/effects/types.tswith the missing type definitions, orActiveUpgradeEffectinterface (which is already dead code sincegetActiveUpgradesreturns[])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.