WaspW
Wasp15mo ago
NEROX

- SDK build failed with exit code: 2

Heyy @kapa.ai
[ Wasp ] ext-src/dashboard/monthlyPlans/MonthlyPlanOperations.ts(19,32): error TS2339: Property 'map' does not exist on type 'never'. [ Wasp ] ext-src/dashboard/monthlyPlans/MonthlyPlanPage.tsx(44,15): error TS2322: Type '(plan: MonthlyPlan & { trainingDays: TrainingDay[]; }) => void' is not assignable to type '(plan: GetResult<{ id: number; name: string; startDate: Date; userId: string; }, unknown> & {}) => void'. [ Wasp ] Types of parameters 'plan' and 'plan' are incompatible. [ Wasp ] Type 'GetResult<{ id: number; name: string; startDate: Date; userId: string; }, unknown> & {}' is not assignable to type 'GetResult<{ id: number; name: string; startDate: Date; userId: string; }, unknown> & {} & { trainingDays: (GetResult<{ id: number; date: Date; workoutId: number; monthlyPlanId: number; }, unknown> & {})[]; }'. [ Wasp ] Property 'trainingDays' is missing in type 'GetResult<{ id: number; name: string; startDate: Date; userId: string; }, unknown> & {}' but required in type '{ trainingDays: (GetResult<{ id: number; date: Date; workoutId: number; monthlyPlanId: number; }, unknown> & {})[]; }'.

Whitout seeing code, what fixes what you propose?
Was this page helpful?