-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile TS with @sentry/node without lib: DOM definitions present #4449
Comments
The error for me on production build is
Nothing is wrong on local until I run Then I modified from this |
@israellias We removed the @NoNameProvided yeah this is an error on our side, we'll fix this ASAP. Thank you for reporting! |
This will be released with edit: this is now released https://www.npmjs.com/package/@sentry/node/v/6.17.2 |
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
The
sentry/node
package incorrectly assumes there are types for DOM on the server. So when trying to compile a NodeJS app the following two error occurs:Technically this happens because we override the
lib
in TS config so there are no types for DOM, however, I think this is a correct assumption on the server-side, and adding simplydom
tolib
in TS config is not a good solution.There is a ~3 year old related issue here: #2266
The text was updated successfully, but these errors were encountered: