property 'value' does not exist on type 'eventtarget & element' code ... And thus not all event.target have that property since event.target is a generic html element so you need . 1 Answer. The data-* attributes gives us the ability to embed custom data attributes on all HTML elements. In TypeScript, we need to explicitly point to the object we want to work with. Definition and Usage The data-* attributes is used to store custom data private to the page or application. You can read about it more here. property 'add' does not exist on type 'observable<void>'.ts (2339) document.queryselector property 'style' does not exist on type 'element'. Solved: The property '__metadata' does not exist on type '... - Power ... property 'value' does not exist on type 'eventtarget & element' code ... For value-based elements, it is a bit more complex. Which property to use is determined by JSX.ElementAttributesProperty. 1. Fixing Can't bind to 'formGroup' since it isn't a known property of ... error TS2339: Property 'for' does not exist on type 'HTMLProps ... You'll want to cast to that more specific interface. Property 'value' does not exist on type 'HTMLElement' in React Testing ... TypeScript doesn't use "types on the left"-style declarations like int x = 0; Type annotations will always go after the thing being typed.. For this, in my code behind, I created a new Control of the type FileUpload and set it equal to the one in my web page. Property 'id' does not exist on type '{}'. We can use string function to convert our object to string. An automation element that has the AcceleratorKey property . And thus not all event.target have that property since event.target is a generic html element so you need .