Sentry treats all Injectable's with use
function as middleware
#13507
Labels
Package: nestjs
Issues related to the Sentry Nestjs SDK
use
function as middleware
#13507
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nestjs
SDK Version
8.27.0
Framework Version
Nest.js 10.4.1
Link to Sentry event
https://sentry.io/issues/5765154861/events/e100e2846c104bb293875be2fcc751c5/?project=4506504369405952
Reproduction Example/SDK Setup
StackBlitz
Create a Injectable class with
use
methodSteps to Reproduce
@Injectable()
class withuse
methodTypeError: Cannot create proxy with a non-object as target or handler
will be thrownExpected Result
The function should be run normally without errors.
Actual Result
TypeError: Cannot create proxy with a non-object as target or handler
will be thrown.It seems it may apply to functions that sentry tries to proxy it (liketransform
/canActivate
/intercept
but not tested)The text was updated successfully, but these errors were encountered: