Skip to content

Instantly share code, notes, and snippets.

@DragonOsman
Created August 22, 2022 17:21
Show Gist options
  • Save DragonOsman/6b391dbda523f9a21e3d29e2a4fdb625 to your computer and use it in GitHub Desktop.
Save DragonOsman/6b391dbda523f9a21e3d29e2a4fdb625 to your computer and use it in GitHub Desktop.
Errors in React TypeScript App
Property 'name' does not exist on type 'EventTarget'.
Property 'value' does not exist on type 'EventTarget'.
Type '(e: Event) => AxiosStatic' is not assignable to type 'FormEventHandler<HTMLFormElement>'.
Types of parameters 'e' and 'event' are incompatible.
Type 'FormEvent<HTMLFormElement>' is missing the following properties from type 'Event': cancelBubble, composed, returnValue, srcElement, and 7 more.
Type '(e: Event) => void' is not assignable to type 'ChangeEventHandler<HTMLInputElement>'.
Types of parameters 'e' and 'event' are incompatible.
Type 'ChangeEvent<HTMLInputElement>' is missing the following properties from type 'Event': cancelBubble, composed, returnValue, srcElement, and 7 more.
Type '(e: Event) => void' is not assignable to type 'ChangeEventHandler<HTMLInputElement>'.
Type '(e: Event) => void' is not assignable to type 'MouseEventHandler<HTMLButtonElement>'.
Property 'author' does not exist on type '{}'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment