Don't know what went wrong can anyone explain, I wrote register according to the documentation but it's still giving -

Please help
You use React Hook Form v7 with wrong syntax, here is a working example:
The field name is passed as the first arg of register
<input
type="text"
{...register("FIELD_NAME", { required: required, validate: validation })}
/>
registersupposed to be?console.log(typeof path)insideget.ts? You can also try doingconsole.dir(path)to gain more information.