sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Hapi Server type does not match Sentry's equivalent type

Open camsteffen opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
  • [X] I have reviewed the documentation https://docs.sentry.io/
  • [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

8.9.2

Framework Version

Hapi 21.3.10

Link to Sentry event

No response

SDK Setup/Reproduction Example

No response

Steps to Reproduce

Sentry.setupHapiErrorHandler(Hapi.server());

Expected Result

No Typescript error

Actual Result

TS2345: Argument of type Server<ServerApplicationState> is not assignable to parameter of type Server

camsteffen avatar Jun 28 '24 20:06 camsteffen