Skip to content

TypeScript error in @sentry/integrations introduced in 7.16.0 #6183

@tamlyn

Description

@tamlyn

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/serverless

SDK Version

7.18.0

Framework Version

Node 16, TypeScript 4.7

Link to Sentry event

No response

Steps to Reproduce

  • upgrade Sentry packages to 7.16.0+
  • make use of import { ExtraErrorData } from "@sentry/integrations";
  • compile with tsc

Note: this appears to be related to #6016 but affects @sentry/integrations rather than @sentry/utils.

Expected Result

No error

Actual Result

node_modules/@sentry/integrations/types/offline.d.ts:2:71 - error TS2304: Cannot find name 'Window'.

2 export declare const WINDOW: import("@sentry/utils").InternalGlobal & Window;
                                                                        ~~~~~~

node_modules/@sentry/integrations/types/reportingobserver.d.ts:2:71 - error TS2304: Cannot find name 'Window'.

2 export declare const WINDOW: import("@sentry/utils").InternalGlobal & Window;
                                                                        ~~~~~~

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions