Type Script-Fix:0x800a01b6 – JavaScript runtime error: Object doesn’t support property or method ‘defineProperty

   I have started exploring on TypeScript in Visual Studio 2017.In Typescript(.ts) file i have created class and declared the variables and methods.Its working fine with my page. Now i have created properties(set,get) for private variables.Now running the code i got the below error in internet explorer(IE 11 version).

0x800a01b6 – JavaScript runtime error: Object doesn’t support property or method ‘defineProperty

   I have verified my code about the properties declaration in Typescript.It correct but not working.I have checked issue in the internet and tried multiple options but not worked.

 I have checked in the internet explorer settings and found the issue for above error in Typescript.Few months back i had worked on intranet based application,I have added local host in compatibility View Setting to check some specific issue.After that i have not removed setting.Due to this i got the issue.Once removed the localhost from compatibility view settings it’s working fine.

Internet explorer–>Tools–>compatibility View Settings–>(select your site)–Remove.