forked from Adeswalla/MentorsMind-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype_errors.txt
More file actions
121 lines (121 loc) · 19.9 KB
/
Copy pathtype_errors.txt
File metadata and controls
121 lines (121 loc) · 19.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
src/App.tsx(63,24): error TS2345: Argument of type '() => Promise<typeof import("C:/Users/PC/Desktop/2026/YieldVault-RWA/MentorsMind-Frontend/src/components/charts/AreaChart")>' is not assignable to parameter of type '() => Promise<{ default: ComponentType<any>; }>'.
Type 'Promise<typeof import("C:/Users/PC/Desktop/2026/YieldVault-RWA/MentorsMind-Frontend/src/components/charts/AreaChart")>' is not assignable to type 'Promise<{ default: ComponentType<any>; }>'.
Property 'default' is missing in type 'typeof import("C:/Users/PC/Desktop/2026/YieldVault-RWA/MentorsMind-Frontend/src/components/charts/AreaChart")' but required in type '{ default: ComponentType<any>; }'.
src/App.tsx(225,9): error TS2741: Property '"learner-profile"' is missing in type '{ search: () => Promise<typeof import("C:/Users/PC/Desktop/2026/YieldVault-RWA/MentorsMind-Frontend/src/pages/MentorSearch")>; learner: () => Promise<typeof import("C:/Users/PC/Desktop/2026/YieldVault-RWA/MentorsMind-Frontend/src/pages/LearnerOnboarding")>; ... 9 more ...; treasury: () => Promise<...>; }' but required in type 'Record<AppView, () => Promise<unknown>>'.
src/components/a11y/AccessibilityPanel.tsx(47,9): error TS2322: Type 'RefObject<HTMLButtonElement | null>' is not assignable to type 'RefObject<HTMLElement>'.
Type 'HTMLButtonElement | null' is not assignable to type 'HTMLElement'.
Type 'null' is not assignable to type 'HTMLElement'.
src/components/a11y/ScreenReaderOnly.tsx(6,14): error TS2503: Cannot find namespace 'JSX'.
src/components/a11y/ScreenReaderOnly.tsx(20,4): error TS2604: JSX element type 'Tag' does not have any construct or call signatures.
src/components/a11y/ScreenReaderOnly.tsx(20,4): error TS2786: 'Tag' cannot be used as a JSX component.
Its type 'string | number | symbol' is not a valid JSX element type.
Type 'number' is not assignable to type 'ElementType'.
src/components/forms/FormField.tsx(52,15): error TS2698: Spread types may only be created from object types.
src/components/learner/LearningAnalytics.tsx(95,13): error TS2353: Object literal may only specify known properties, and 'labels' does not exist in type 'MultiSeriesDataPoint[]'.
src/components/learner/LearningAnalytics.tsx(107,13): error TS2353: Object literal may only specify known properties, and 'labels' does not exist in type 'MultiSeriesDataPoint[]'.
src/components/learner/ProfileForm.tsx(91,19): error TS2322: Type '{ onFileSelect: (files: File[]) => Promise<void>; accept: string; maxSize: number; }' is not assignable to type 'IntrinsicAttributes & FileUploadProps'.
Property 'onFileSelect' does not exist on type 'IntrinsicAttributes & FileUploadProps'.
src/components/learner/ProfileForm.tsx(100,17): error TS2322: Type '{ label: string; name: string; value: string; onChange: (e: ChangeEvent<HTMLInputElement, HTMLInputElement>) => void; required: true; }' is not assignable to type 'IntrinsicAttributes & { type?: "number" | "text" | "email" | "password" | "tel" | "url" | undefined; placeholder?: string | undefined; disabled?: boolean | undefined; ... 6 more ...; rightIcon?: ReactNode; } & InputHTMLAttributes<...> & RefAttributes<...>'.
Property 'label' does not exist on type 'IntrinsicAttributes & { type?: "number" | "text" | "email" | "password" | "tel" | "url" | undefined; placeholder?: string | undefined; disabled?: boolean | undefined; ... 6 more ...; rightIcon?: ReactNode; } & InputHTMLAttributes<...> & RefAttributes<...>'.
src/components/learner/ProfileForm.tsx(110,17): error TS2322: Type '{ label: string; name: string; value: string; onChange: (e: ChangeEvent<HTMLTextAreaElement, HTMLTextAreaElement>) => void; rows: number; description: string; }' is not assignable to type 'IntrinsicAttributes & { placeholder?: string | undefined; disabled?: boolean | undefined; readOnly?: boolean | undefined; rows?: number | undefined; maxLength?: number | undefined; className?: string | undefined; hasError?: boolean | undefined; showCharCount?: boolean | undefined; } & TextareaHTMLAttributes<...> & R...'.
Property 'label' does not exist on type 'IntrinsicAttributes & { placeholder?: string | undefined; disabled?: boolean | undefined; readOnly?: boolean | undefined; rows?: number | undefined; maxLength?: number | undefined; className?: string | undefined; hasError?: boolean | undefined; showCharCount?: boolean | undefined; } & TextareaHTMLAttributes<...> & R...'.
src/components/learner/ProfileForm.tsx(121,17): error TS2322: Type '{ label: string; name: string; value: string; onChange: (e: ChangeEvent<HTMLTextAreaElement, HTMLTextAreaElement>) => void; rows: number; description: string; }' is not assignable to type 'IntrinsicAttributes & { placeholder?: string | undefined; disabled?: boolean | undefined; readOnly?: boolean | undefined; rows?: number | undefined; maxLength?: number | undefined; className?: string | undefined; hasError?: boolean | undefined; showCharCount?: boolean | undefined; } & TextareaHTMLAttributes<...> & R...'.
Property 'label' does not exist on type 'IntrinsicAttributes & { placeholder?: string | undefined; disabled?: boolean | undefined; readOnly?: boolean | undefined; rows?: number | undefined; maxLength?: number | undefined; className?: string | undefined; hasError?: boolean | undefined; showCharCount?: boolean | undefined; } & TextareaHTMLAttributes<...> & R...'.
src/components/learner/ProfileForm.tsx(140,49): error TS2322: Type '{ children: Element; label: string; description: string; }' is not assignable to type 'IntrinsicAttributes & FormFieldProps'.
Property 'description' does not exist on type 'IntrinsicAttributes & FormFieldProps'.
src/components/learner/ProfileForm.tsx(149,47): error TS2322: Type '{ children: Element; label: string; description: string; }' is not assignable to type 'IntrinsicAttributes & FormFieldProps'.
Property 'description' does not exist on type 'IntrinsicAttributes & FormFieldProps'.
src/components/learner/ProfileForm.tsx(174,17): error TS2322: Type '{ label: string; name: string; value: LearningStyle; onChange: (e: string | number) => void; options: { value: LearningStyle; label: string; }[]; }' is not assignable to type 'IntrinsicAttributes & SelectProps'.
Property 'label' does not exist on type 'IntrinsicAttributes & SelectProps'.
src/components/learner/ProfileForm.tsx(177,75): error TS2339: Property 'target' does not exist on type 'string | number'.
Property 'target' does not exist on type 'string'.
src/components/learner/ProfileForm.tsx(184,17): error TS2322: Type '{ label: string; name: string; value: string; onChange: (e: string | number) => void; options: { value: string; label: string; }[]; }' is not assignable to type 'IntrinsicAttributes & SelectProps'.
Property 'label' does not exist on type 'IntrinsicAttributes & SelectProps'.
src/components/learner/ProfileForm.tsx(187,61): error TS2339: Property 'target' does not exist on type 'string | number'.
Property 'target' does not exist on type 'string'.
src/components/learner/ProfileForm.tsx(199,17): error TS2322: Type '{ label: string; name: string; value: string; onChange: (e: ChangeEvent<HTMLInputElement, HTMLInputElement>) => void; }' is not assignable to type 'IntrinsicAttributes & { type?: "number" | "text" | "email" | "password" | "tel" | "url" | undefined; placeholder?: string | undefined; disabled?: boolean | undefined; ... 6 more ...; rightIcon?: ReactNode; } & InputHTMLAttributes<...> & RefAttributes<...>'.
Property 'label' does not exist on type 'IntrinsicAttributes & { type?: "number" | "text" | "email" | "password" | "tel" | "url" | undefined; placeholder?: string | undefined; disabled?: boolean | undefined; ... 6 more ...; rightIcon?: ReactNode; } & InputHTMLAttributes<...> & RefAttributes<...>'.
src/components/learner/ProfileForm.tsx(208,17): error TS2322: Type '{ label: string; name: string; value: ProfileVisibility; onChange: (e: string | number) => void; options: { value: ProfileVisibility; label: string; }[]; }' is not assignable to type 'IntrinsicAttributes & SelectProps'.
Property 'label' does not exist on type 'IntrinsicAttributes & SelectProps'.
src/components/learner/ProfileForm.tsx(211,63): error TS2339: Property 'target' does not exist on type 'string | number'.
Property 'target' does not exist on type 'string'.
src/components/learner/ProgressDashboard.tsx(33,11): error TS2322: Type 'SkillProgressTrendPoint[]' is not assignable to type 'MultiSeriesDataPoint[]'.
Type 'SkillProgressTrendPoint' is not assignable to type 'MultiSeriesDataPoint'.
Index signature for type 'string' is missing in type 'SkillProgressTrendPoint'.
src/components/learner/ReminderSettings.tsx(2,15): error TS2305: Module '"../../types"' has no exported member 'ReminderSettings'.
src/components/learner/UpcomingReminders.tsx(2,15): error TS2305: Module '"../../types"' has no exported member 'Reminder'.
src/components/learner/UpcomingReminders.tsx(2,25): error TS2305: Module '"../../types"' has no exported member 'ReminderHistoryItem'.
src/components/mentor/SessionDetail.tsx(208,10): error TS2741: Property 'isOpen' is missing in type '{ sessionId: string; currentTime: string; onClose: () => void; }' but required in type 'RescheduleModalProps'.
src/components/navigation/Navbar.tsx(18,10): error TS2305: Module '"../wallet/FreighterConnect"' has no exported member 'FreighterConnect'.
src/components/notifications/Toast.tsx(143,14): error TS2322: Type '{ children: string; jsx: true; }' is not assignable to type 'DetailedHTMLProps<StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>'.
Property 'jsx' does not exist on type 'DetailedHTMLProps<StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>'.
src/components/onboarding/MentorOnboarding.tsx(68,13): error TS2322: Type '{ completedSteps: OnboardingStepId[]; onStepClick: () => void; isDismissed: true; onResume: () => void; }' is not assignable to type 'IntrinsicAttributes & OnboardingChecklistProps'.
Property 'completedSteps' does not exist on type 'IntrinsicAttributes & OnboardingChecklistProps'.
src/components/wallet/WalletAddress.tsx(138,10): error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead?
src/contexts/AuthContext.tsx(116,30): error TS18046: 'res' is of type 'unknown'.
src/contexts/AuthContext.tsx(116,47): error TS18046: 'res' is of type 'unknown'.
src/contexts/AuthContext.tsx(121,13): error TS18046: 'me' is of type 'unknown'.
src/contexts/AuthContext.tsx(122,16): error TS18046: 'me' is of type 'unknown'.
src/contexts/AuthContext.tsx(123,15): error TS18046: 'me' is of type 'unknown'.
src/contexts/AuthContext.tsx(124,15): error TS18046: 'me' is of type 'unknown'.
src/contexts/AuthContext.tsx(125,24): error TS18046: 'me' is of type 'unknown'.
src/contexts/AuthContext.tsx(184,67): error TS2554: Expected 2-3 arguments, but got 4.
src/contexts/AuthContext.tsx(187,30): error TS18046: 'res' is of type 'unknown'.
src/contexts/AuthContext.tsx(187,47): error TS18046: 'res' is of type 'unknown'.
src/contexts/AuthContext.tsx(197,13): error TS18046: 'userRes' is of type 'unknown'.
src/contexts/AuthContext.tsx(198,16): error TS18046: 'userRes' is of type 'unknown'.
src/contexts/AuthContext.tsx(199,15): error TS18046: 'userRes' is of type 'unknown'.
src/contexts/AuthContext.tsx(200,15): error TS18046: 'userRes' is of type 'unknown'.
src/contexts/AuthContext.tsx(202,24): error TS18046: 'userRes' is of type 'unknown'.
src/hooks/useChartData.ts(2,15): error TS2305: Module '"../types/charts.types"' has no exported member 'UseChartDataOptions'.
src/hooks/useChartData.ts(2,36): error TS2305: Module '"../types/charts.types"' has no exported member 'UseChartDataResult'.
src/hooks/useDelegation.ts(74,35): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
No index signature with a parameter of type 'string' was found on type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
src/hooks/useDelegation.ts(74,59): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
No index signature with a parameter of type 'string' was found on type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
src/hooks/useDelegation.ts(86,39): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
No index signature with a parameter of type 'string' was found on type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
src/hooks/useDelegation.ts(91,9): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
No index signature with a parameter of type 'string' was found on type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
src/hooks/useDelegation.ts(93,20): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
No index signature with a parameter of type 'string' was found on type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
src/hooks/useDelegation.ts(115,12): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
No index signature with a parameter of type 'string' was found on type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
src/hooks/useDelegation.ts(130,82): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
No index signature with a parameter of type 'string' was found on type '{ 'alice.eth': string; 'bob.eth': string; 'carol.eth': string; }'.
src/hooks/useFreighter.ts(3,29): error TS2307: Cannot find module 'stellar-sdk' or its corresponding type declarations.
src/hooks/useGoals.ts(125,7): error TS2353: Object literal may only specify known properties, and 'createdAt' does not exist in type 'Omit<Goal, "id" | "createdAt" | "updatedAt">'.
src/hooks/useLearnerProfile.ts(3,10): error TS2305: Module '"../utils/client.storage.utils"' has no exported member 'storage'.
src/hooks/usePerformance.ts(43,60): error TS2353: Object literal may only specify known properties, and 'durationThreshold' does not exist in type 'PerformanceObserverInit'.
src/hooks/useReminders.ts(2,24): error TS2305: Module '"../types"' has no exported member 'Reminder'.
src/hooks/useReminders.ts(2,34): error TS2305: Module '"../types"' has no exported member 'ReminderSettings'.
src/hooks/useReminders.ts(2,52): error TS2305: Module '"../types"' has no exported member 'ReminderHistoryItem'.
src/hooks/useReminders.ts(2,73): error TS2305: Module '"../types"' has no exported member 'ReminderType'.
src/hooks/useReminders.ts(64,38): error TS7006: Parameter 'minutes' implicitly has an 'any' type.
src/hooks/useReminders.ts(107,17): error TS7006: Parameter 'prev' implicitly has an 'any' type.
src/hooks/useReminders.ts(111,17): error TS7006: Parameter 'prev' implicitly has an 'any' type.
src/hooks/useSearch.ts(56,20): error TS2345: Argument of type '(options: SearchOptions) => Promise<void>' is not assignable to parameter of type '(...args: unknown[]) => unknown'.
Types of parameters 'options' and 'args' are incompatible.
Type 'unknown' is not assignable to type 'SearchOptions'.
src/hooks/useWallet.ts(87,27): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'CallCollectionFunction<OperationRecord>'.
Property '0' does not exist on type 'CallCollectionFunction<OperationRecord>'.
src/hooks/useWebSocket.ts(136,34): error TS2345: Argument of type 'undefined' is not assignable to parameter of type '() => void'.
src/hooks/useWebSocket.ts(137,35): error TS2345: Argument of type 'undefined' is not assignable to parameter of type '(event: CloseEvent) => void'.
src/hooks/useWebSocket.ts(138,37): error TS2345: Argument of type 'undefined' is not assignable to parameter of type '(message: WebSocketMessage) => void'.
src/hooks/useWebSocket.ts(139,35): error TS2345: Argument of type 'undefined' is not assignable to parameter of type '(error: ErrorEvent) => void'.
src/hooks/useWebSocket.ts(140,39): error TS2345: Argument of type 'undefined' is not assignable to parameter of type '(attempt: number) => void'.
src/pages/LearnerProfile.tsx(4,10): error TS2614: Module '"../components/learner/AchievementBadges"' has no exported member 'AchievementBadges'. Did you mean to use 'import AchievementBadges from "../components/learner/AchievementBadges"' instead?
src/pages/LearnerProfile.tsx(25,10): error TS2739: Type '{}' is missing the following properties from type 'NavbarProps': auth, onLogout
src/pages/MentorDashboard.tsx(126,145): error TS2322: Type '(sessionId: string, newTime: string) => void' is not assignable to type '(id: string) => void'.
Target signature provides too few arguments. Expected 2 or more, but got 1.
src/pages/MentorWallet.tsx(10,10): error TS2305: Module '"../components/wallet/FreighterConnect"' has no exported member 'FreighterConnect'.
src/pages/MentorWallet.tsx(78,23): error TS7006: Parameter 'walletInfo' implicitly has an 'any' type.
src/pages/WalletDashboardPage.tsx(6,10): error TS2305: Module '"../components/wallet/TransactionHistory"' has no exported member 'TransactionHistory'.
src/services/freighter.service.ts(1,59): error TS2307: Cannot find module 'stellar-sdk' or its corresponding type declarations.
src/services/messaging.service.ts(52,28): error TS2339: Property 'conversations' does not exist on type '{ auth: { login: string; signup: string; me: string; logout: string; forgotPassword: string; resetPassword: string; verifyEmail: string; resendVerification: string; refreshToken: string; }; sessions: string; mentors: string; payments: string; }'.
src/services/messaging.service.ts(62,31): error TS2339: Property 'conversations' does not exist on type '{ auth: { login: string; signup: string; me: string; logout: string; forgotPassword: string; resetPassword: string; verifyEmail: string; resendVerification: string; refreshToken: string; }; sessions: string; mentors: string; payments: string; }'.
src/services/messaging.service.ts(72,31): error TS2339: Property 'conversations' does not exist on type '{ auth: { login: string; signup: string; me: string; logout: string; forgotPassword: string; resetPassword: string; verifyEmail: string; resendVerification: string; refreshToken: string; }; sessions: string; mentors: string; payments: string; }'.
src/services/messaging.service.ts(91,31): error TS2339: Property 'conversations' does not exist on type '{ auth: { login: string; signup: string; me: string; logout: string; forgotPassword: string; resetPassword: string; verifyEmail: string; resendVerification: string; refreshToken: string; }; sessions: string; mentors: string; payments: string; }'.
src/services/messaging.service.ts(105,31): error TS2339: Property 'conversations' does not exist on type '{ auth: { login: string; signup: string; me: string; logout: string; forgotPassword: string; resetPassword: string; verifyEmail: string; resendVerification: string; refreshToken: string; }; sessions: string; mentors: string; payments: string; }'.
src/services/messaging.service.ts(115,31): error TS2339: Property 'conversations' does not exist on type '{ auth: { login: string; signup: string; me: string; logout: string; forgotPassword: string; resetPassword: string; verifyEmail: string; resendVerification: string; refreshToken: string; }; sessions: string; mentors: string; payments: string; }'.
src/services/messaging.service.ts(126,28): error TS2339: Property 'conversations' does not exist on type '{ auth: { login: string; signup: string; me: string; logout: string; forgotPassword: string; resetPassword: string; verifyEmail: string; resendVerification: string; refreshToken: string; }; sessions: string; mentors: string; payments: string; }'.