-1

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.

  • 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 Answers1

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