#Build and Deploy a Patient Management System with Next.js | Twilio, TypeScript, TailwindCSS
16 messages · Page 1 of 1 (latest)
hi, from your screenshot, it seems you have assigned the wrong value, and the value does not match the required data type. For example, in AppointmentForm.tsx, the timeZone argument is missing. Please send your AppointmentForm.tsx so i can check further
Try using that file and see if you still get the error in AppointmentForm.tsx
You can add | null to your onChange in ReactDatePicker in CustomFormField.tsx
<ReactDatePicker
showTimeSelect={props.showTimeSelect ?? false}
selected={field.value}
onChange={(date: Date | null) => field.onChange(date)}
timeInputLabel="Time:"
dateFormat={props.dateFormat ?? 'MM/dd/yyyy'}
wrapperClassName="date-picker"
/>
Then, in patient.actions.ts, take note that the import InputFile comes from 'node-appwrite/file'
Check where your InputFile is being imported from. It should be:
import { InputFile } from "node-appwrite/file"
and change fromBlob to fromBuffer
please check your gender Elements, in my case its Male, Female and Other
?????