Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- 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/nestjs
SDK Version
8.27.0
Framework Version
Nest.js 10.4.1
Link to Sentry event
Reproduction Example/SDK Setup
Create a Injectable class with use
method
@Injectable()
export class SomeClass {
async use(amount: number): Promise<number> {
return amount - 1
}
}
Steps to Reproduce
- Create a
@Injectable()
class withuse
method - Try to use it from anywhere from the code
TypeError: Cannot create proxy with a non-object as target or handler
will be thrown
Expected 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 (like transform
/ canActivate
/ intercept
but not tested)
Metadata
Metadata
Assignees
Type
Projects
Status
No status