Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/node
SDK Version
7.12.0
Framework Version
No response
Link to Sentry event
No response
Steps to Reproduce
- create empty folder
- switch to newly created folder
npm init
(use defaults)npm i @sentry/node @types/node typescript
npx tsc --init
(create vanilla tsconfig)- change
lib
property within tsconfig.json toES2020
- change
skipLibCheck
tofalse
- create simple source file
test.ts
import { captureException } from "@sentry/node";
captureException(new Error());
- run
npx tsc
Expected Result
test.ts
should compile to test.js
Actual Result
Compiling fails with this error:
node_modules/@sentry/utils/types/browser.d.ts:22:58 - error TS2304: Cannot find name 'Element'.
22 export declare function getDomElement(selector: string): Element | null;
~~~~~~~
Found 1 error in node_modules/@sentry/utils/types/browser.d.ts:22