React Typescript

zod validation errror with enums:
category: z.enum([“Groceries”, “Utilities”, “Entertainment”], {errorMap: () => ({ message: “Category is required.” }), }),});

and categories are
const categories = [“Groceries”, “Utilities”, “Entertainment”] as const;
export default categories;

I get
Overload 1 of 2, ‘(values: readonly [“Groceries”, “Utilities”, “Entertainment”], params?: string | { error?: string | $ZodErrorMap<$ZodIssueInvalidValue> | undefined; message?: string | undefined; } | undefined): ZodEnum<…>’, gave the following error.
Any help will be greatly appreciated.

There is some deprecated zod code if you used the latest version. I would search zod in the forms and look through the many threads on other issues to see if you can get context or find the exact issue if you have not. Otherwise paste the code you used or put a screenshot.