Problem with types
Unanswered
Maltese posted this in #help-forum
MalteseOP
Here I am importing DevTool dynamicly and when try to give it the control prop, its gives type error, but when I import it staticly, this error is gone. How to fix it?
3 Replies
MalteseOP
If I don't import it dynamicly then I will get a hidratation error
MalteseOP
I actually fix this with the help of chat gpt by turning it in this
<DevTool control={control as unknown as Control<FieldValues>} />I am not the best at typescript, can somebody explain it why its working