2
votes

I have an angular application using Microsoft applicationinsights-js. Somehow tsc -p command gives an issue while converting this to javascript. Is it due to incompatible versions of typescript and applicationinsights? Below is the error message we get:

@types/applicationinsights-js/index.d.ts:424:40 - error TS2304: Cannot find name 'PerformanceTiming'.

    static getPerformanceTiming(): PerformanceTiming;

I appreciate any help in this. Thank you.

1

1 Answers

1
votes

Same here. PerformanceTiming is a common web interface, as described at Mozilla Page. You need to add "lib": ["dom"] in compilerOptionsproperty at tsconfig.json file.