Files
parakasa/tsc_err.txt

17 lines
5.7 KiB
Plaintext

components/dashboard/slider-form.tsx(8,24): error TS2307: Cannot find module '@/components/ui/button' or its corresponding type declarations.
components/dashboard/slider-form.tsx(9,23): error TS2307: Cannot find module '@/components/ui/input' or its corresponding type declarations.
components/dashboard/slider-form.tsx(10,26): error TS2307: Cannot find module '@/components/ui/textarea' or its corresponding type declarations.
components/dashboard/slider-form.tsx(11,26): error TS2307: Cannot find module '@/components/ui/checkbox' or its corresponding type declarations.
components/dashboard/slider-form.tsx(20,8): error TS2307: Cannot find module '@/components/ui/form' or its corresponding type declarations.
components/dashboard/slider-form.tsx(21,58): error TS2307: Cannot find module '@/components/ui/card' or its corresponding type declarations.
components/dashboard/slider-form.tsx(24,29): error TS2307: Cannot find module '@/components/ui/image-upload' or its corresponding type declarations.
components/dashboard/slider-form.tsx(25,44): error TS2307: Cannot find module '@/app/(dashboard)/dashboard/sliders/actions' or its corresponding type declarations.
components/dashboard/slider-form.tsx(57,9): error TS2322: Type 'Resolver<{ title: string; image_url: string; description?: string; link?: string; order?: unknown; is_active?: boolean; }, any, { title: string; image_url: string; order: number; is_active: boolean; description?: string; link?: string; }>' is not assignable to type 'Resolver<{ title: string; image_url: string; order: number; is_active: boolean; description?: string; link?: string; }, any, { title: string; image_url: string; order: number; is_active: boolean; description?: string; link?: string; }>'.
Types of parameters 'options' and 'options' are incompatible.
Type 'ResolverOptions<{ title: string; image_url: string; order: number; is_active: boolean; description?: string; link?: string; }>' is not assignable to type 'ResolverOptions<{ title: string; image_url: string; description?: string; link?: string; order?: unknown; is_active?: boolean; }>'.
Type 'unknown' is not assignable to type 'number'.
components/dashboard/slider-form.tsx(107,55): error TS2345: Argument of type '(data: { title: string; image_url: string; order: number; is_active: boolean; description?: string; link?: string; }) => Promise<void>' is not assignable to parameter of type 'SubmitHandler<TFieldValues>'.
Types of parameters 'data' and 'data' are incompatible.
Type 'TFieldValues' is not assignable to type '{ title: string; image_url: string; order: number; is_active: boolean; description?: string; link?: string; }'.
Type 'FieldValues' is missing the following properties from type '{ title: string; image_url: string; order: number; is_active: boolean; description?: string; link?: string; }': title, image_url, order, is_active