veza/apps/web/build_errors_2.txt

123 lines
16 KiB
Text
Raw Normal View History

src/components/admin/AdminUsersView.tsx(155,23): error TS6133: 'reason' is declared but its value is never read.
src/components/admin/AdminUsersView.tsx(155,31): error TS6133: 'details' is declared but its value is never read.
src/components/developer/DeveloperDashboardView.tsx(198,11): error TS2322: Type '(data: { name: string; scopes: string[]; }) => Promise<void>' is not assignable to type '(keyData: { name: string; scopes: string[]; }) => Promise<{ key?: string | undefined; id: string; name: string; prefix: string; }>'.
Type 'Promise<void>' is not assignable to type 'Promise<{ key?: string | undefined; id: string; name: string; prefix: string; }>'.
Type 'void' is not assignable to type '{ key?: string | undefined; id: string; name: string; prefix: string; }'.
src/components/gamification/AchievementCard.tsx(23,7): error TS2322: Type '"default" | "gaming"' is not assignable to type '"default" | "outline" | "ghost" | "glass" | "elevated" | "muted" | "interactive" | "glow" | "glowMagenta" | "spotlight" | null | undefined'.
Type '"gaming"' is not assignable to type '"default" | "outline" | "ghost" | "glass" | "elevated" | "muted" | "interactive" | "glow" | "glowMagenta" | "spotlight" | null | undefined'.
src/components/layout/Header.tsx(22,3): error TS6133: 'Command' is declared but its value is never read.
src/components/theme/ThemeProvider.tsx(80,28): error TS2783: 'value' is specified more than once, so this usage will be overwritten.
src/components/ui/FAB.tsx(1,1): error TS6133: 'React' is declared but its value is never read.
src/components/ui/Sidebar.tsx(2,37): error TS6133: 'X' is declared but its value is never read.
src/components/ui/input.tsx(10,18): error TS6133: 'Upload' is declared but its value is never read.
src/components/views/NotificationsView.tsx(3,1): error TS6133: 'NotificationItem' is declared but its value is never read.
src/features/auth/hooks/usePasswordReset.ts(15,13): error TS2552: Cannot find name 'requestPasswordReset'. Did you mean 'usePasswordReset'?
src/features/auth/hooks/usePasswordReset.ts(30,35): error TS2345: Argument of type 'ResetPasswordFormData' is not assignable to parameter of type 'ResetPasswordRequest'.
Property 'new_password' is missing in type 'ResetPasswordFormData' but required in type 'ResetPasswordRequest'.
src/features/auth/pages/LoginPage.tsx(10,1): error TS6192: All imports in import declaration are unused.
src/features/auth/pages/VerifyEmailPage.tsx(90,13): error TS2304: Cannot find name 'verifyEmail'.
src/features/chat/components/ChatMessage.tsx(5,33): error TS6133: 'Check' is declared but its value is never read.
src/features/chat/components/ChatRoom.tsx(8,14): error TS6133: 'Disc' is declared but its value is never read.
src/features/chat/components/ChatRoom.tsx(9,3): error TS6133: 'Clock' is declared but its value is never read.
src/features/chat/components/ChatRoom.tsx(21,21): error TS6133: 'wsStatus' is declared but its value is never read.
src/features/chat/components/ChatRoom.tsx(136,17): error TS6133: 'isMe' is declared but its value is never read.
src/features/chat/components/ChatRoom.tsx(137,17): error TS6133: 'isSequence' is declared but its value is never read.
src/features/chat/hooks/useChat.ts(2,1): error TS6133: 'useAuthStore' is declared but its value is never read.
src/features/library/components/LibraryManager.tsx(22,3): error TS6133: 'Upload' is declared but its value is never read.
src/features/library/pages/LibraryPage.tsx(33,26): error TS2769: No overload matches this call.
Overload 1 of 2, '(predicate: (value: Track, index: number, array: Track[]) => value is Track, thisArg?: any): Track[]', gave the following error.
Argument of type '(t: Track) => any' is not assignable to parameter of type '(value: Track, index: number, array: Track[]) => value is Track'.
Types of parameters 't' and 'value' are incompatible.
Type 'import("/home/senke/git/talas/veza/apps/web/src/features/tracks/types/track").Track' is not assignable to type 'import("/home/senke/git/talas/veza/apps/web/src/types/api").Track'.
Type 'Track' is not assignable to type '{ id: string; creator_id: string; title: string; artist: string; file_path: string; file_size: number; format: string; is_public: boolean; play_count: number; like_count: number; created_at: string; ... 13 more ...; filePath?: string | undefined; }'.
Types of property 'status' are incompatible.
Type '"uploading" | "processing" | "completed" | "failed" | undefined' is not assignable to type 'VezaBackendApiInternalModelsTrackStatus | TrackStatus'.
Type 'undefined' is not assignable to type 'VezaBackendApiInternalModelsTrackStatus | TrackStatus'.
Overload 2 of 2, '(predicate: (value: Track, index: number, array: Track[]) => unknown, thisArg?: any): Track[]', gave the following error.
Argument of type '(t: Track) => any' is not assignable to parameter of type '(value: Track, index: number, array: Track[]) => unknown'.
Types of parameters 't' and 'value' are incompatible.
Type 'import("/home/senke/git/talas/veza/apps/web/src/features/tracks/types/track").Track' is not assignable to type 'import("/home/senke/git/talas/veza/apps/web/src/types/api").Track'.
Type 'Track' is not assignable to type '{ id: string; creator_id: string; title: string; artist: string; file_path: string; file_size: number; format: string; is_public: boolean; play_count: number; like_count: number; created_at: string; ... 13 more ...; filePath?: string | undefined; }'.
Types of property 'status' are incompatible.
Type '"uploading" | "processing" | "completed" | "failed" | undefined' is not assignable to type 'VezaBackendApiInternalModelsTrackStatus | TrackStatus'.
Type 'undefined' is not assignable to type 'VezaBackendApiInternalModelsTrackStatus | TrackStatus'.
src/features/library/pages/LibraryPage.tsx(35,60): error TS2339: Property 'name' does not exist on type 'never'.
src/features/library/pages/LibraryPage.tsx(128,31): error TS2345: Argument of type '(track: Track) => JSX.Element' is not assignable to parameter of type '(value: Track, index: number, array: Track[]) => Element'.
Types of parameters 'track' and 'value' are incompatible.
Type 'import("/home/senke/git/talas/veza/apps/web/src/features/tracks/types/track").Track' is not assignable to type 'import("/home/senke/git/talas/veza/apps/web/src/types/api").Track'.
Type 'Track' is not assignable to type '{ id: string; creator_id: string; title: string; artist: string; file_path: string; file_size: number; format: string; is_public: boolean; play_count: number; like_count: number; created_at: string; ... 13 more ...; filePath?: string | undefined; }'.
Types of property 'status' are incompatible.
Type '"uploading" | "processing" | "completed" | "failed" | undefined' is not assignable to type 'VezaBackendApiInternalModelsTrackStatus | TrackStatus'.
Type 'undefined' is not assignable to type 'VezaBackendApiInternalModelsTrackStatus | TrackStatus'.
src/features/library/pages/LibraryPage.tsx(210,35): error TS2345: Argument of type '(track: Track, i: number) => JSX.Element' is not assignable to parameter of type '(value: Track, index: number, array: Track[]) => Element'.
Types of parameters 'track' and 'value' are incompatible.
Type 'import("/home/senke/git/talas/veza/apps/web/src/features/tracks/types/track").Track' is not assignable to type 'import("/home/senke/git/talas/veza/apps/web/src/types/api").Track'.
Type 'Track' is not assignable to type '{ id: string; creator_id: string; title: string; artist: string; file_path: string; file_size: number; format: string; is_public: boolean; play_count: number; like_count: number; created_at: string; ... 13 more ...; filePath?: string | undefined; }'.
Types of property 'status' are incompatible.
Type '"uploading" | "processing" | "completed" | "failed" | undefined' is not assignable to type 'VezaBackendApiInternalModelsTrackStatus | TrackStatus'.
Type 'undefined' is not assignable to type 'VezaBackendApiInternalModelsTrackStatus | TrackStatus'.
src/features/library/pages/LibraryPage.tsx(257,37): error TS2322: Type '{ isOpen: boolean; onClose: () => void; }' is not assignable to type 'IntrinsicAttributes & UploadModalProps'.
Property 'isOpen' does not exist on type 'IntrinsicAttributes & UploadModalProps'. Did you mean 'open'?
src/features/player/components/GlobalPlayer.tsx(2,8): error TS6133: 'React' is declared but its value is never read.
src/features/player/components/GlobalPlayer.tsx(2,27): error TS6133: 'useEffect' is declared but its value is never read.
src/features/player/components/GlobalPlayer.tsx(6,1): error TS6133: 'Link' is declared but its value is never read.
src/features/player/components/GlobalPlayer.tsx(10,3): error TS6133: 'Maximize2' is declared but its value is never read.
src/features/playlists/components/AddTrackToPlaylistModal.tsx(195,16): error TS2304: Cannot find name 'Loader2'.
src/features/playlists/components/PlaylistTrackList.tsx(276,7): error TS2322: Type '{ children: Element; sensors: SensorDescriptor<SensorOptions>[]; collisionDetection: CollisionDetection; onDragEnd: (event: DragEndEvent) => Promise<...>; disabled: boolean; }' is not assignable to type 'IntrinsicAttributes & Props'.
Property 'disabled' does not exist on type 'IntrinsicAttributes & Props'.
src/features/profile/pages/UserProfilePage.tsx(10,29): error TS6133: 'CardHeader' is declared but its value is never read.
src/features/profile/pages/UserProfilePage.tsx(10,41): error TS6133: 'CardTitle' is declared but its value is never read.
src/features/profile/pages/UserProfilePage.tsx(16,1): error TS6133: 'useAuthStore' is declared but its value is never read.
src/features/profile/pages/UserProfilePage.tsx(22,9): error TS6133: 'currentUser' is declared but its value is never read.
src/features/profile/pages/UserProfilePage.tsx(38,40): error TS6133: 'isTracksLoading' is declared but its value is never read.
src/features/profile/pages/UserProfilePage.tsx(44,39): error TS6133: 'isPostsLoading' is declared but its value is never read.
src/features/profile/pages/UserProfilePage.tsx(46,65): error TS2345: Argument of type 'UserProfile | null | undefined' is not assignable to parameter of type 'UserProfile | undefined'.
Type 'null' is not assignable to type 'UserProfile | undefined'.
src/features/profile/pages/UserProfilePage.tsx(50,43): error TS6133: 'isPlaylistsLoading' is declared but its value is never read.
src/features/profile/pages/UserProfilePage.tsx(241,32): error TS2304: Cannot find name 'Play'.
src/features/roles/pages/RolesPage.tsx(6,16): error TS6133: 'CardContent' is declared but its value is never read.
src/features/roles/pages/RolesPage.tsx(6,29): error TS6133: 'CardHeader' is declared but its value is never read.
src/features/roles/pages/RolesPage.tsx(6,41): error TS6133: 'CardTitle' is declared but its value is never read.
src/features/tracks/components/CommentThread.tsx(514,22): error TS2304: Cannot find name 'Loader2'.
src/hooks/useFormValidation.ts(7,1): error TS6133: 'apiClient' is declared but its value is never read.
src/hooks/useFormValidation.ts(24,11): error TS6196: 'ValidateResponse' is declared but never used.
src/hooks/useFormValidation.ts(90,12): error TS6133: 'data' is declared but its value is never read.
src/main.tsx(7,37): error TS6133: 'event' is declared but its value is never read.
src/main.tsx(11,50): error TS6133: 'event' is declared but its value is never read.
src/main.tsx(249,11): error TS6133: 'err' is declared but its value is never read.
src/services/api/auth.ts(304,3): error TS6133: 'AuthResponse' is declared but its value is never read.
src/services/api/auth.ts(482,3): error TS2484: Export declaration conflicts with exported declaration of 'LoginRequest'.
src/services/api/auth.ts(483,3): error TS2484: Export declaration conflicts with exported declaration of 'RegisterRequest'.
src/services/api/auth.ts(484,3): error TS2484: Export declaration conflicts with exported declaration of 'LoginResponse'.
src/services/api/auth.ts(485,3): error TS2484: Export declaration conflicts with exported declaration of 'RegisterResponse'.
src/services/developerService.ts(68,21): error TS6133: 'key' is declared but its value is never read.
src/stores/ui.ts(97,21): error TS2339: Property 'theme' does not exist on type 'T'.
src/stores/ui.ts(97,42): error TS2339: Property 'theme' does not exist on type 'NonNullable<T>'.
src/stores/ui.ts(98,21): error TS2339: Property 'language' does not exist on type 'T'.
src/stores/ui.ts(98,45): error TS2339: Property 'language' does not exist on type 'NonNullable<T>'.
src/stores/ui.ts(99,21): error TS2339: Property 'sidebarOpen' does not exist on type 'T'.
src/stores/ui.ts(99,48): error TS2339: Property 'sidebarOpen' does not exist on type 'NonNullable<T>'.
src/types/api.ts(4,91): error TS2300: Duplicate identifier 'VezaBackendApiInternalModelsUser'.
src/types/api.ts(59,15): error TS2300: Duplicate identifier 'VezaBackendApiInternalModelsUser'.
src/types/search.ts(1,23): error TS2307: Cannot find module './track' or its corresponding type declarations.
src/types/search.ts(2,26): error TS2307: Cannot find module './playlist' or its corresponding type declarations.
src/types/search.ts(3,1): error TS6133: 'UserProfile' is declared but its value is never read.
src/utils/aggressiveVisualFix.ts(95,13): error TS6133: 'computed' is declared but its value is never read.
src/utils/fixDisplayIssues.ts(258,13): error TS6133: 'bgImage' is declared but its value is never read.
src/utils/fixDisplayIssues.ts(259,13): error TS6133: 'bg' is declared but its value is never read.
src/utils/fixDisplayIssues.ts(272,13): error TS6133: 'bgImageAfter' is declared but its value is never read.
src/utils/reportIssue.ts(63,16): error TS2339: Property 'status' does not exist on type '{ timestamp: string; message: string; code: number; request_id?: string | undefined; details?: { message: string; field: string; value?: string | undefined; }[] | undefined; context?: Record<string, any> | undefined; retry_after?: number | undefined; }'.
src/utils/reportIssue.ts(64,48): error TS2339: Property 'status' does not exist on type '{ timestamp: string; message: string; code: number; request_id?: string | undefined; details?: { message: string; field: string; value?: string | undefined; }[] | undefined; context?: Record<string, any> | undefined; retry_after?: number | undefined; }'.
src/utils/reportIssue.ts(116,16): error TS2339: Property 'errors' does not exist on type '{ timestamp: string; message: string; code: number; request_id?: string | undefined; details?: { message: string; field: string; value?: string | undefined; }[] | undefined; context?: Record<string, any> | undefined; retry_after?: number | undefined; }'.
src/utils/reportIssue.ts(116,47): error TS2339: Property 'errors' does not exist on type '{ timestamp: string; message: string; code: number; request_id?: string | undefined; details?: { message: string; field: string; value?: string | undefined; }[] | undefined; context?: Record<string, any> | undefined; retry_after?: number | undefined; }'.
src/utils/reportIssue.ts(119,29): error TS2339: Property 'errors' does not exist on type '{ timestamp: string; message: string; code: number; request_id?: string | undefined; details?: { message: string; field: string; value?: string | undefined; }[] | undefined; context?: Record<string, any> | undefined; retry_after?: number | undefined; }'.
src/utils/reportIssue.ts(164,28): error TS2339: Property 'status' does not exist on type '{ timestamp: string; message: string; code: number; request_id?: string | undefined; details?: { message: string; field: string; value?: string | undefined; }[] | undefined; context?: Record<string, any> | undefined; retry_after?: number | undefined; }'.
src/utils/stateHydration.ts(195,11): error TS2339: Property 'fetchFavorites' does not exist on type 'LibraryStore'.
src/utils/toast.ts(35,11): error TS6133: 'err' is declared but its value is never read.
src/utils/toast.ts(69,60): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
src/utils/toast.ts(72,58): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
src/utils/toast.ts(75,60): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
src/utils/toast.ts(78,59): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
src/utils/toast.ts(87,67): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
src/utils/toast.ts(113,57): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.