-
-
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/react - Uncaught TypeError: _a.getTransport is not a function
#3995
Comments
I will note that all my dependencies in |
Thank you for reporting! It seems that that sentry-javascript/packages/tracing/src/transaction.ts Lines 107 to 110 in b910f96
@kamilogorek will defer to you to investigate further as this is a regression related to client outcomes. |
The only scenario when it can happen is either out-of-sync versions of our packages or having multiple instanced of the SDK used at the same time. A trivial solution to this, if we decide to patch it (although I'd prefer to understand the culprit first) is to change this._hub.getClient()?.getTransport().recordLostEvent?.(Outcome.SampleRate, 'transaction');
// to
this._hub.getClient()?.getTransport?.().recordLostEvent?.(Outcome.SampleRate, 'transaction');
|
@kamilogorek how can I confirm the above? I only see the latest version in |
If you are able to get a breakpoint at the place where it breaks, you can get the version of currently running SDK with |
I'm using Nuxt and have |
If you are using
|
Thanks @kamilogorek, I think it makes sense to implement the check you mentioned above since some packages might take a bit it update. |
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
I'm seeing the following error consistently and can't seem to figure it out.
Link to event: https://sentry.io/organizations/eqtble/issues/2661337839/?project=5761814&query=is%3Aunresolved
The text was updated successfully, but these errors were encountered: