-
-
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
offline integration requires typescript dom lib in integration package #2877
Comments
@jstewmon since I added the Offline integration, I would be happy to help out here if possible. Do you have an example of how to reproduce this problem? |
Not directly related, but previous changes to this piece of the codebase lead to #2868, so we'll want to keep that in mind. |
@voraciousdev sure, I put up a minimal reproduction repo here: https://github.com/jstewmon/sentry-javascript-2877 If you run |
@HazAT @voraciousdev @kamilogorek The sentry packages have been essentially unusable in typescript projects targeting node for 2 months now. Is there any plan to remediate this issue? |
We've pinned to |
@kirillgroshkov I think we were able to get around this by adding "compilerOptions": {
"lib": [
"dom"
]
} I know this doesn't work for everyone, but it solved the errors we were seeing like:
After going through this, I don't actually think the issue we were encountering is the same as OP at this point, but I will leave this comment for anyone else that is curious. |
Yeah, we're still on |
I just tested one of the possible solutions to this issue. Basically using Triple-Slash Directive |
Is there an acceptable fix for this that doesn't include adding |
Bump from a paying customer |
Hey folks, it's been a while, appreciate all the comments. We'll be addressing this as part of our work in #4240! Added this to the roadmap! |
You can close this issue |
Hi, all. I believe this was fixed in #3508, which was included in |
Package + Version
@sentry/integrations
5.22.3Description
The recently added offline integration (#2778) depends on the TypeScript dom lib, which cannot be safely included in node.js projects due to incompatible interface definitions, such as Timers.
I found an existing mention of this problem, but no issue tracking it yet:
#2853 (comment)
I see that
dom
is included in the repo-widetsconfig.json
file:https://github.com/getsentry/sentry-javascript/blob/master/packages/typescript/tsconfig.json#L9
It may help to remove
dom
from that shared file and only includedom
in thebrowser
package to avoid this problem.The text was updated successfully, but these errors were encountered: