🔴 CraftingTab: stale/broken export in game/index.ts #57

Closed
opened 2026-05-18 17:06:38 +02:00 by Anexim · 2 comments
Owner

File: src/components/game/index.ts, line 5

export { CraftingTab } from './crafting';

The file src/components/game/crafting/index.tsx does not export a CraftingTab. It exports:

export { EnchantmentDesigner } from './EnchantmentDesigner';
export { EnchantmentPreparer } from './EnchantmentPreparer';
export { EnchantmentApplier } from './EnchantmentApplier';
export { EquipmentCrafter } from './EquipmentCrafter';

Impact: Any import of CraftingTab from @/components/game would fail at runtime. The crafting sub-components exist but there is no unified CraftingTab wrapper component.

Fix: Either create a CraftingTab component in the crafting directory that composes the existing sub-components, or remove the stale export from game/index.ts.

**File:** `src/components/game/index.ts`, line 5 ```ts export { CraftingTab } from './crafting'; ``` The file `src/components/game/crafting/index.tsx` does **not** export a `CraftingTab`. It exports: ```ts export { EnchantmentDesigner } from './EnchantmentDesigner'; export { EnchantmentPreparer } from './EnchantmentPreparer'; export { EnchantmentApplier } from './EnchantmentApplier'; export { EquipmentCrafter } from './EquipmentCrafter'; ``` **Impact:** Any import of `CraftingTab` from `@/components/game` would fail at runtime. The crafting sub-components exist but there is no unified `CraftingTab` wrapper component. **Fix:** Either create a `CraftingTab` component in the crafting directory that composes the existing sub-components, or remove the stale export from `game/index.ts`.
Anexim added the ai:todo label 2026-05-18 17:06:38 +02:00
n8n-gitea was assigned by Anexim 2026-05-18 17:06:38 +02:00
Author
Owner

[priority: 5] CRASH/BLOCKER — stale/broken export in game/index.ts for CraftingTab.

[priority: 5] CRASH/BLOCKER — stale/broken export in game/index.ts for CraftingTab.
Author
Owner

Fixed: Removed stale export { CraftingTab } from './crafting' from game/index.ts. The crafting barrel file exports EnchantmentDesigner, EnchantmentPreparer, EnchantmentApplier, and EquipmentCrafter — no CraftingTab exists. No imports of CraftingTab were found in the codebase.

Fixed: Removed stale `export { CraftingTab } from './crafting'` from `game/index.ts`. The crafting barrel file exports `EnchantmentDesigner`, `EnchantmentPreparer`, `EnchantmentApplier`, and `EquipmentCrafter` — no `CraftingTab` exists. No imports of `CraftingTab` were found in the codebase.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#57