TS2769: No overload matches this call. Overload 1 of 2, '(props: InputTextProps | Readonly<InputTextProps>): InputText

UI Components for React
Post Reply
kbsc332
Posts: 4
Joined: 04 Dec 2020, 16:58

03 Sep 2021, 17:45

https://github.com/primefaces/primereact/issues/2274

error source
https://codesandbox.io/s/misty-cache-02 ... rc/App.tsx

error message
TS2769: No overload matches this call. Overload 1 of 2, '(props: InputTextProps | Readonly): InputText', gave the following error. Type 'RefObject' is not assignable to type 'string | (string & ((instance: HTMLInputElement | null) => void)) | (string & RefObject) | (RefObject & string) | ... 6 more ... | undefined'. Type 'RefObject' is not assignable to type '((instance: InputText | null) => void) & RefObject'. Type 'RefObject' is not assignable to type '(instance: InputText | null) => void'. Type 'RefObject' provides no match for the signature '(instance: InputText | null): void'. Overload 2 of 2, '(props: InputTextProps, context: any): InputText', gave the following error. Type 'RefObject' is not assignable to type 'string | (string & ((instance: HTMLInputElement | null) => void)) | (string & RefObject) | (RefObject & string) | ... 6 more ... | undefined'. Type 'RefObject' is not assignable to type '((instance: InputText | null) => void) & RefObject'. Type 'RefObject' is not assignable to type '(instance: InputText | null) => void'.

kbsc332
Posts: 4
Joined: 04 Dec 2020, 16:58

03 Sep 2021, 18:14


Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests