Skip to content

Commit 65e6482

Browse files
committed
fix(modal): use 'import type' for TypeScript type-only imports
Vite strips TypeScript types at runtime, so IndexingPhase and IndexingStats must be imported with 'import type' to avoid runtime errors.
1 parent 6e4294e commit 65e6482

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/src/components/IndexingProgressModal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import {
1818
RefreshCw
1919
} from 'lucide-react'
2020
import {
21-
useRepoIndexingWebSocket,
21+
useRepoIndexingWebSocket
22+
} from '@/hooks/useRepoIndexingWebSocket'
23+
import type {
2224
IndexingPhase,
2325
IndexingStats
2426
} from '@/hooks/useRepoIndexingWebSocket'

0 commit comments

Comments
 (0)