---
title: "Comment by Benoit GRASSET on \"Validating React-Select Dropdown with React-Form-Hook and Yup in React(TypeScript): A Step-By-Step Guide\" | Hashnode"
description: "I have the following error by using your code on my project: Type &#39;Resolver&lt;{ gender: { value: string; }; hobbies: any[]; }&gt;&#39; is not assignable to"
url: "https://hashnode.com/posts/validating-react-select-dropdown-with-react-form-hook-and-yup-in-reacttypescript-a-step-by-step-guide/62d2cc07e52a5d129a0c0b12/comment/64bfa03598ab412289ab7289"
---

[Discussion](https://hashnode.com/posts/validating-react-select-dropdown-with-react-form-hook-and-yup-in-reacttypescript-a-step-by-step-guide/62d2cc07e52a5d129a0c0b12)

Comment [Validating React-Select Dropdown with React-Form-Hook and Yup in React(TypeScript): A Step-By-Step Guide](https://hashnode.com/posts/validating-react-select-dropdown-with-react-form-hook-and-yup-in-reacttypescript-a-step-by-step-guide/62d2cc07e52a5d129a0c0b12)

[Benoit GRASSET](https://hashnode.com/@benoitgrasset)

[Jul 25, 2023](https://hashnode.com/posts/validating-react-select-dropdown-with-react-form-hook-and-yup-in-reacttypescript-a-step-by-step-guide/62d2cc07e52a5d129a0c0b12/comment/64bfa03598ab412289ab7289)

I have the following error by using your code on my project:

Type 'Resolver<{ gender: { value: string; }; hobbies: any\[\]; }>' is not assignable to type 'Resolver<SelectField, any>'. Types of parameters 'options' and 'options' are incompatible. Type 'ResolverOptions<SelectField>' is not assignable to type 'ResolverOptions<{ gender: { value: string; }; hobbies: any\[\]; }>'. Type '{ gender: { value: string; }; hobbies: any\[\]; }' is not assignable to type 'SelectField'.ts(2322)

It seems that your resolver is not strongly typed enough
