-
Notifications
You must be signed in to change notification settings - Fork 131
[useSentry] @sentry/ >= 6.18.x causes runtime error #1342
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
Comments
Hi, I've noticed the same error in my local environment (a simple test project using envelop + sentry), and downgrading |
I am also using the latest version of sentry, but I didn't notice any problem with nexus 🤔 If downgrading sentry is the way to temporary fix this, then perfect I will just wait until upgrading it again until a fix is issued |
I tested with |
Hey, I updated the issue with the workflow progress for resolving it. |
I edited my post with a reproduction |
I reduced the reproduction further in https://stackblitz.com/edit/node-kwtsm9?file=src/index.ts This is not related to pothos at all. I will update the title of this issue. |
True, thanks for the update |
In case anyone else encounters this in a RedwoodJS project, hre's what worked for me after nuking node_modules, yarn.lock, and /dist. "@envelop/rate-limiter": "^1.0.0",
"@envelop/sentry": "^3.1.1",
"@redwoodjs/api": "^0.50.0",
"@redwoodjs/graphql-server": "^0.50.0",
"@sentry/node": "6.18.1",
"@sentry/tracing": "6.18.1", |
I have the same problem with the following packages: "@envelop/graphql-jit": "^4.1.0",
"@envelop/sentry": "^3.1.1",
"@graphql-yoga/node": "^2.0.0",
"@sentry/node": "^6.18.1",
"@sentry/tracing": "^6.18.1", I tested it with the latest versions and with this downgrade fix. Nothing works. |
@HashDot See https://semver.npmjs.com/ for more information as well as https://docs.npmjs.com/about-semantic-versioning In regards to fixing this issue, it seems like there is an unexpected breaking change within sentry. I quickly scanned the sentry issues but could not find one. I will dedicate more time to this issue next week. In the meantime, any help or research (of the sentry changes) is highly appreciated. |
@n1ru4l ty. my bad :) |
This is linked to getsentry/sentry-javascript#4731 I created #1367 with a failing test. Currently, a workaround seems to be adding a |
@HashDot @AzSiAz @pi0neerpat @MattiaPette can anyone confirm whether this is solved with sentry version |
Hi @n1ru4l ! Version 6.19.4 works as well with the same results. Only thing that I'm noticing has changed right now is this log:
It's probably not related to this issue, will try to investigate further and open another issue if it's needed. |
Still need to import |
I am also still experiencing the same issues on 6.19.6 😢 (getsentry/sentry-javascript#4731 (comment)) |
Did you try adding |
So according to getsentry/sentry-javascript#4731 (comment), Sentry, unfortunately, shipped a major breaking change in a minor/patch release. I updated the documentation to reflect that change in #1407. |
Uh oh!
There was an error while loading. Please reload this page.
Issue workflow progress
Progress of the issue based on the Contributor Workflow
@envelop/*
packages that you are using.Describe the bug
While refactoring my code to use Pothos, I noticed using
@envelop/sentry
result inTo Reproduce
Just use sentry plugin with Pothos framework, exemple repo
https://stackblitz.com/edit/node-qabanz?file=package.json
Expected behavior
No Error
Environment:
MacOS
17
&16
@envelop/sentry
:3.1.1
@envelop/core
:2.1.0
Additional context
I am also using this as server
@graphql-ez/express
:0.9.7
,@graphql-ez/plugin-websockets
:0.10.4
,The text was updated successfully, but these errors were encountered: