Hey Support - I just ran Astro upgrade on a starlight site I’m working on and after the upgrade I get this error when running build. I didn’t make any changes to the config (or anything else really).
src/content/config.ts:5:27 - error ts(2322): Type '(context: SchemaContext) => z.ZodIntersection<z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; editUrl: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>; ... 9 more ...; pagefind: z.ZodDefault<...>; }, "strip", z.ZodTypeAny, { ...; }, { ...; }>, z.AnyZodObject> | z.ZodIn...' is not assignable to type 'BaseSchema | ((context: SchemaContext) => BaseSchema) | ((context: SchemaContext) => BaseSchema) | undefined'.
Type '(context: SchemaContext) => z.ZodIntersection<z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; editUrl: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>; ... 9 more ...; pagefind: z.ZodDefault<...>; }, "strip", z.ZodTypeAny, { ...; }, { ...; }>, z.AnyZodObject> | z.ZodIn...' is not assignable to type '(context: SchemaContext) => BaseSchema'.
5 docs: defineCollection({ schema: docsSchema() }),
~~~~~~
I tried deleting the node modules and reinstalling.. I’m not sure what else to try 🤷🏼♂️. Any ideas are very much appreciated! Thank you!