Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.
This repository was 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

Description

@cyberz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions