Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.

ContactForm Type ... is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes #45

Open
cyberz opened this issue Mar 13, 2019 · 0 comments

Comments

@cyberz
Copy link

cyberz commented Mar 13, 2019

`src/views/contact/ContactForm.tsx:16:22 - error TS2322: Type '{ component: (field: any) => Element; label: string; name: string; placeholder: string; type: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.
Property 'component' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.

16 <CustomField
~~~~~~~~~~~

src/views/contact/ContactForm.tsx:25:22 - error TS2322: Type '{ component: (field: any) => Element; label: string; name: string; placeholder: string; type: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.
Property 'component' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.

25 <CustomField
~~~~~~~~~~~

src/views/contact/ContactForm.tsx:40:22 - error TS2322: Type '{ label: string; name: string; component: (field: any) => Element; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.
Property 'name' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.

40 <CustomField
~~~~~~~~~~~

src/views/contact/ContactForm.tsx:47:22 - error TS2322: Type '{ component: (field: any) => Element; label: string; name: string; placeholder: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.
Property 'component' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.

47 <CustomField
~~~~~~~~~~~

src/views/contact/ContactForm.tsx:57:22 - error TS2322: Type '{ component: (field: any) => Element; label: string; name: string; option: string; checked: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.
Property 'component' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.

57 <CustomField
~~~~~~~~~~~

src/views/contact/ContactForm.tsx:64:22 - error TS2322: Type '{ component: (field: any) => Element; label: string; name: string; option: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.
Property 'component' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.

64 <CustomField
~~~~~~~~~~~

src/views/contact/ContactForm.tsx:70:22 - error TS2322: Type '{ component: (field: any) => Element; label: string; name: string; option: string; disabled: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.
Property 'component' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.

70 <CustomField
~~~~~~~~~~~

src/views/contact/ContactForm.tsx:79:22 - error TS2322: Type '{ component: (field: any) => Element; label: string; name: string; type: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.
Property 'component' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Field<{ label?: string; placeholder?: string; type?: string; option?: string; checked?: boolean; disabled?: boolean; }>> & Readonly<{ label?: string; ... 4 more ...; disabled?: boolean; }> & Readonly<...>'.

79 <CustomField
~~~~~~~~~~~`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant