Zod convex helpers build error

Getting this error when running npm run build on nextjs app

Type error: Type '{ [Index in keyof T]: T[Index] extends ZodTypeAny ? ConvexValidatorFromZod<T[Index]> : never; }' does not satisfy the constraint 'Validator<any, "required", any>[]'.
  Types of property 'length' are incompatible.
    Type 'T["length"] extends ZodTypeAny ? ConvexValidatorFromZod<T["length"]> : never' is not assignable to type 'number'.
      Type 'ConvexValidatorFromZod<T["length"]>' is not assignable to type 'number'.
        Type 'VId<Id<string>, "required"> | (T["length"] extends ZodString ? VString<string, "required"> : T["length"] extends ZodNumber ? VFloat64<...> : T["length"] extends ZodNaN ? VFloat64<...> : T["length"] extends ZodBigInt ? VInt64<...> : T["length"] extends ZodBoolean ? VBoolean<...> : T["length"] extends ZodNull ? VNull<...' is not assignable to type 'number'.
          Type 'VId<Id<string>, "required">' is not assignable to type 'number'.
            Type 'VId<Id<string>, "required">' is not assignable to type 'number'.

  531 |   ? VUnion<
  532 |       ConvexValidatorFromZod<T[number]>["type"],
> 533 |       {
      |       ^
  534 |         [Index in keyof T]: T[Index] extends z.ZodTypeAny
  535 |           ? ConvexValidatorFromZod<T[Index]>
   Linting and checking validity of type
Was this page helpful?