Skip to content

Avoid Event type in utils worldwide #9860

Closed
@Vignatus

Description

@Vignatus

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

7.88.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  • Installed the latest sentry packages
  • Simple http server fails to build
  • Shows an error in @sentry/utils/types/worldwide.d.ts

My dependencies are

"dependencies": {
    "@sentry/node": "^7.88.0",
    "@sentry/profiling-node": "^1.3.2",
    "express": "^4.17.3",
    "reflect-metadata": "^0.1.13",
    "rimraf": "^3.0.2"
  },
  "devDependencies": {
    "@sentry/cli": "^2.23.0",
    "@sentry/wizard": "^3.19.0",
    "@types/express": "^4.17.13",
    "@types/node": "^17.0.22",
    "ts-node": "^10.7.0",
    "tsc": "^2.0.4",
    "typescript": "^4.6.3"
  }

Expected Result

A successful build

Actual Result

Failed build with an error from sentry

node_modules/@sentry/utils/types/worldwide.d.ts:24:17 - error TS2304: Cannot find name 'Event'. 
24     (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;

Screenshot 2023-12-15 at 12 21 44 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions