isInvalid property does not exists error on VSCode #6726
marcitqualab
started this conversation in
General
Replies: 1 comment 3 replies
-
Odd, I don't see it in our prop table https://react-spectrum.adobe.com/react-spectrum/TextField.html#props which would be why you are getting an error. It looks like we purposefully omitted it here 068ecd1 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am not sure if this issue is related to react-spectrum, vscode or some linter.
I am testing this code example from the official docs.
https://react-spectrum.adobe.com/react-spectrum/forms.html#react-hook-form
Even though the app works i get this error / warning in VScode.
Type '{ label: string; name: "name"; value: string; onChange: (...event: any[]) => void; onBlur: Noop; ref: RefCallBack; isInvalid: boolean; isRequired: true; errorMessage: string | undefined; }' is not assignable to type 'IntrinsicAttributes & SpectrumTextFieldProps & RefAttributes'.
Property 'isInvalid' does not exist on type 'IntrinsicAttributes & SpectrumTextFieldProps & RefAttributes'.
This is may package.json
Could anyone shine some light about how to debug this warning to understand what could be done to remove the warning?
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions