Skip to content

offline integration requires typescript dom lib in integration package #2877

@jstewmon

Description

@jstewmon

Package + Version

  • [ x ] @sentry/integrations 5.22.3

Description

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-wide tsconfig.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 include dom in the browser package to avoid this problem.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions