From 3aceaca2e138e18feae4a1b4841cc2a134d7ce59 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 29 Jul 2026 19:39:17 +0000 Subject: [PATCH] Fix TypeScript compilation: remove deprecated baseUrl, add missing imports, fix type narrowing - Remove deprecated baseUrl from tsconfig.app.json (TS 6.0 error) - Add missing AlertCircle and Button imports in Dashboard.tsx - Cast Sidebar onNavigate arg to fix View type mismatch tsc exits 0, vite build exits 0 --- src/App.tsx | 2 +- src/components/layout/Dashboard.tsx | 3 ++- tsconfig.app.json | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 18a499a..e0f8227 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -151,7 +151,7 @@ function AppContent() { setConnectionDialogOpen(true)} activeView={view.type} - onNavigate={handleNavigate} + onNavigate={(v) => handleNavigate(v as View)} />
{renderMainContent()} diff --git a/src/components/layout/Dashboard.tsx b/src/components/layout/Dashboard.tsx index ba30a8e..592fb4c 100644 --- a/src/components/layout/Dashboard.tsx +++ b/src/components/layout/Dashboard.tsx @@ -2,12 +2,13 @@ import { useCallback } from 'react' import { useQueryClient } from '@tanstack/react-query' import { useNodes, useVMs, useTasks, queryKeys } from '@/hooks/useProxmox' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' -import { Server, Cpu, HardDrive, MemoryStick } from 'lucide-react' +import { Server, Cpu, HardDrive, MemoryStick, AlertCircle } from 'lucide-react' import { ResourceGauge } from '@/components/dashboard/ResourceGauge' import { NodeHealthGrid } from '@/components/dashboard/NodeHealthGrid' import { ActivityFeed } from '@/components/dashboard/ActivityFeed' import { QuickActions } from '@/components/dashboard/QuickActions' import { formatBytes } from '@/lib/format' +import { Button } from '@/components/ui/button' interface DashboardProps { connectionId: string diff --git a/tsconfig.app.json b/tsconfig.app.json index dc04221..f01cf23 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -17,7 +17,6 @@ "jsx": "react-jsx", /* Path aliases */ - "baseUrl": ".", "paths": { "@/*": ["./src/*"] },