typescript-hapi-react-hot-loader-example icon indicating copy to clipboard operation
typescript-hapi-react-hot-loader-example copied to clipboard

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

Open cyberz opened this issue 5 years ago • 0 comments

`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 ~~~~~~~~~~~`

cyberz avatar Mar 13 '19 14:03 cyberz