You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node_modules/@sentry/utils/types/browser.d.ts:22:58 - error TS2304: Cannot find name 'Element'.
22 exportdeclarefunctiongetDomElement(selector: string): Element | null;
~~~~~~~
Found 1 error in node_modules/@sentry/utils/types/browser.d.ts:22
The text was updated successfully, but these errors were encountered:
add DOM to the lib option within your tsconfig (or use the --libparam of tsc)
set skipLibCheck option to false or remove it completly
Sadly, I cant use any of those workarounds. I think this issue was introduced with #5594. Interestingly a very similar issue happened earlier this year, see #4449. @AbhiPrasad fixed this issue with #4451, removing all references to DOM.
Is there an existing issue for this?
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
npm init
(use defaults)npm i @sentry/node @types/node typescript
npx tsc --init
(create vanilla tsconfig)lib
property within tsconfig.json toES2020
skipLibCheck
tofalse
test.ts
npx tsc
Expected Result
test.ts
should compile totest.js
Actual Result
Compiling fails with this error:
The text was updated successfully, but these errors were encountered: