Hello! I am frustrated because dyad cant help me anymore! the app is built, but when I sync over the dyad app it comes with a lot of issues. i tried deleting the node_modules folder and the package-lock.json file. reinstalled node.js,… nothing worked!
PLEASE HELP ME!!!
Error invoking remote method ‘sync-capacitor’: Error: [sync-capacitor] Error: Failed to build app (exit code 2)
STDOUT:
whispering-unicorn-peek@0.0.0 build
pnpm exec tsc && vite build
src/components/ui/calendar.tsx(58,9): error TS2353: Object literal may only specify known properties, and ‘IconLeft’ does not exist in type ‘Partial’.
src/components/ui/carousel.tsx(6,8): error TS2724: ‘“embla-carousel-react”’ has no exported member named ‘EmblaCarouselType’. Did you mean ‘UseEmblaCarouselType’?
src/components/ui/carousel.tsx(7,8): error TS2614: Module ‘“embla-carousel-react”’ has no exported member ‘EmblaOptionsType’. Did you mean to use ‘import EmblaOptionsType from “embla-carousel-react”’ instead?
src/components/ui/form.tsx(34,7): error TS2322: Type ‘{ name: TName; watch: UseFormWatch; getValues: UseFormGetValues; getFieldState: UseFormGetFieldState<…>; … 12 more …; subscribe: UseFormSubscribe<…>; }’ is not assignable to type ‘FormFieldContextValue<FieldValues, string>’.
Type ‘{ name: TName; watch: UseFormWatch; getValues: UseFormGetValues; getFieldState: UseFormGetFieldState<…>; … 12 more …; subscribe: UseFormSubscribe<…>; }’ is not assignable to type ‘UseFormReturn<FieldValues, any, FieldValues>’.
Types of property ‘watch’ are incompatible.
Type ‘UseFormWatch’ is not assignable to type ‘UseFormWatch’.
Types of parameters ‘defaultValue’ and ‘defaultValue’ are incompatible.
Type ‘{ [x: string]: any; } | undefined’ is not assignable to type ‘DeepPartial | undefined’.
Type ‘{ [x: string]: any; }’ is not assignable to type ‘DeepPartial’.
src/components/ui/form.tsx(62,5): error TS2783: ‘name’ is specified more than once, so this usage will be overwritten.
src/components/ui/input-otp.tsx(38,58): error TS2339: Property ‘slots’ does not exist on type ‘Context’.
STDERR: