Property 'value' does not exist on type EventTarget in TypeScript. I don't see the exact answer solution yet. So I post this question again.
Asked
Active
Viewed 273 times
-1
-
Does this answer your question? [Property 'value' does not exist on type 'EventTarget'](https://stackoverflow.com/questions/42066421/property-value-does-not-exist-on-type-eventtarget) – Yong Shun Sep 13 '21 at 04:56
-
No, that question doesn't fix my problems. – Pum Suan Khai Sep 13 '21 at 06:41
1 Answers
0
I will answer this question by myself.
Reason: This error is because of strict type of Dom Event.
Solution: So, we will turn off this strict type of Dom Event. Goto tsconfig.json file, under "angularCompilerOptions"
"angularCompilerOptions":{
"strictTemplates": true,
"strictDomEventTypes": false, (add this line of code)
..other strict
}
and restart with ng serve

Pum Suan Khai
- 29
- 9
-
1Instead of disabling type checking, you should provide proper types to event handler... on what element you are calling onSortedSelected event? – Ritesh Waghela Sep 13 '21 at 04:55
-
-
only this line of code fixed my problems thankyou. "strictDomEventTypes": false, – Pum Suan Khai Sep 13 '21 at 06:43
-
Do not post duplicate questions and do not answer them. If you think your answer is valuable post them on the original question, no need to create posts – Vega Sep 13 '21 at 14:00