-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry sdk adds "__wrapped"-properties to types, which prevents nestjs project from building #12682
Sentry sdk adds "__wrapped"-properties to types, which prevents nestjs project from building #12682
Comments
Hi, thanks for writing in. I am a bit confused tbh. We are only referencing the sentry-javascript/packages/aws-serverless/src/sdk.ts Lines 374 to 377 in c7b8503
However, that type is not exposed in any way. Are you 100% sure Sentry is causing this? Are you referencing our internals in any weird way? |
Hi, thanks for the quick response. Unfortunately it only occurs when adding Sentry to the project, without any "special" configuration. After further investigation, I could pin it down to this peerDependency: shimmer 1.05, which is used by openTelegraphy 1.16.0. So it isn't directly caused by Sentry, but rather by the used dependencies. |
@DanielMenke interesting. Thanks for investigating. Could you elaborate where exactly the error points to? We'll try to report and fix this upstream. |
The error is complaining that the input I created a minimal reproduction repo here(I removed the graphql focus to keep it minimal): I also added a separate branch without any sentry-relations, which starts without any problems (you might need to delete the node_modules directory upfront) |
Update: The Problem also occurs with the typescript-native Utility-Type Current workaround would be to use |
Thanks a bunch for the investigation and reproduction! Grade A issue 👌 I opened a bunch of upstream contributions so we can fix this. For now, I recommend a good ol' |
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.1.3.0
Framework Version
10.0.3
Link to Sentry event
No response
SDK Setup/Reproduction Example
Steps to Reproduce
in
and
Install
@sentry/node
run
nest build
Expected Result
NestJs builds without Problems
Actual Result
The SDK expects the silently added
__wrapped
-property to be defined and Typescript throws the following Error:The text was updated successfully, but these errors were encountered: