Important Details
How are you running Sentry?
Description
When I try to compile my TypeScript project, which uses Sentry, I get this type error:
../../node_modules/@sentry/utils/dist/misc.d.ts:90:53 - error TS2304: Cannot find name 'Performance'.
90 export declare const crossPlatformPerformance: Pick<Performance, 'now' | 'timeOrigin'>;
~~~~~~~~~~~
I checked the file referenced above, and my guess is that Performance type needs to be imported from node somehow. It appears to exist in the npm @types/node package under perf_hooks.d.ts.
Steps to Reproduce
I am not sure how to reproduce this or whether it's a problem with my project or Sentry itself.
What you expected to happen
Using Sentry in TypeScript files should not cause type errors.
Possible Solution
Possibly import the above type into the file causing the problem.
Important Details
How are you running Sentry?
Description
When I try to compile my TypeScript project, which uses Sentry, I get this type error:
I checked the file referenced above, and my guess is that
Performancetype needs to be imported from node somehow. It appears to exist in the npm@types/nodepackage underperf_hooks.d.ts.Steps to Reproduce
I am not sure how to reproduce this or whether it's a problem with my project or Sentry itself.
What you expected to happen
Using Sentry in TypeScript files should not cause type errors.
Possible Solution
Possibly import the above type into the file causing the problem.