1. The error information is as follows
2. Source code understanding
export declare type InputProps = Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'maxLength' | 'autoComplete' | 'enterKeyHint' | 'pattern' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect'> & {
value?: string;
defaultValue?: string;
onChange?: (val: string) => void;
placeholder?: string;
disabled?: boolean;
readOnly?: boolean;
clearable?: boolean;
onClear?: () => void;
id?: string;
} & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--disabled-color'>;
React.inputhtmlattributes have the following names in react
type DetailedHTMLProps<E extends HTMLAttributes<T>, T> = ClassAttributes<T> & E;
3. Solution
The version of react declaration file is too low. The following declaration is missing
Read More:
- Compile QT source code error causes and Solutions
- Bitcoin source code analysis – load Wallet
- java.math.BigInteger Source code
- Source code analysis of macOS startup process
- Vs2015 compiling ffmpeg source code
- Why interview requires reading the source code
- python ValueError: source code string cannot contain null bytes
- Action RPG demo source code (VC + OpenGL)
- Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map
- [181124] VC + + use OpenGL to draw 3D graphics example source code
- [salesforce] prompt error deploying or retrieving source when vscode pulls the code
- Barrier free click path source code to read
- Definition of bracket type in typescript
- Java gets the type t.class of generic t
- Compiling the pi_kernel source code appears: fatal error: openssl/opensslv.h: No such file or directory
- Linux rhel7/centos7 source code compilation and installation Emacs Error NO x toolkit could be found
- Fatal error: MSpanList_Insert error when installing golang source code
- Quickly create a local typescript running environment.
- RuntimeError:cuda runtime error (11) : invalid argument at /pytorch/aten/src/THC/generic
- Video JS can’t play the prompt( CODE:4 MEDIA_ ERR_ SRC_ NOT_ SUPPORTED) No compatible source was found for this video.