React 18 course

I am using react-hook-form and I use validation for zod relover, and this is my schema: const schema = z.object({
name: z.string().min(3, { message: ‘Must be at least 3 characters’ }),
age: z.number({ invalid_error_type: “Age field is requried.” }).min(18, { message: ‘Age must be at least 18’ })
}); but I got an error invalid_error_type: string
Expected 0 arguments, but got 1.

pls explain more and document your question properly

The video player does not hide the navigation on the side so when I split my screen so that I can code along I’m getting a very small video to watch since there is no way to hide the nvaigations🤦‍♂️