Upgrading to work with PayloadCMS 3.0 #22
Annotations
10 errors
build:
src/emails/AppointmentCreatedEmail.tsx#L66
Property 'prefferedName' does not exist on type 'User'.
|
build:
src/emails/AppointmentCreatedEmail.tsx#L100
Conversion of type '{ doc: { appointmentType: "appointment"; customer: { dob: string; email: string; firstName: string; id: string; lastName: string; username: string; }; start: string; end: string; host: { firstName: string; lastName: string; prefferedName: string; id: string; }; id: string; services: { ...; }[]; }; }' to type 'Props' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
build:
src/emails/AppointmentUpdatedEmail.tsx#L66
Property 'prefferedName' does not exist on type 'User'.
|
build:
src/emails/AppointmentUpdatedEmail.tsx#L100
Conversion of type '{ doc: { appointmentType: "appointment"; customer: { dob: string; email: string; firstName: string; id: string; lastName: string; username: string; }; start: string; end: string; host: { firstName: string; lastName: string; prefferedName: string; id: string; }; id: string; services: { ...; }[]; }; }' to type 'Props' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
build:
src/hooks/sendCustomerEmail.ts#L4
Module '"../types"' has no exported member 'Customer'.
|
build:
src/hooks/sendCustomerEmail.ts#L17
Argument of type '(res: Appointment) => Appointment' is not assignable to parameter of type '(value: (JsonObject & TypeWithID) | null) => Appointment | PromiseLike<Appointment>'.
|
build:
src/hooks/setEndDateTime.ts#L14
Argument of type '(res: Service) => number' is not assignable to parameter of type '(value: (JsonObject & TypeWithID) | null) => number | PromiseLike<number>'.
|
build:
src/providers/AppointmentsProvider.tsx#L5
Cannot find module '@faceless-ui/modal' or its corresponding type declarations.
|
build:
src/utilities/GetAppointmentsForDay.ts#L21
Argument of type '(res: { docs: Service[]; }) => Service[]' is not assignable to parameter of type '(value: PaginatedDocs<JsonObject & TypeWithID>) => Service[] | PromiseLike<Service[]>'.
|
build:
src/utilities/GetAppointmentsForDay.ts#L23
'req.query.services' is of type 'unknown'.
|