-
-
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
[node][8.0.0] TypeError: acs.getCurrentScope is not a function #12054
Comments
Started after Dependabot changed from: 7.114.0 to 8.0.0 reverting to 7.114.0 works fine |
Hey, thank you for reporting. Some questions:
I will look into this, it seems to me there may be some conflict there. One thing you could try is to log this before calling console.log(globalThis.__SENTRY__); Does this output something for you? 🤔 |
Same issue here, migrating from |
@Mintoo200 just to rule one thing out: Did you follow the migration guide for initializing the v8 SDK? I looked at your repo and couldn't find the |
Looking into this some more, in addition to @Lms24 comment above, I think @Mintoo200 your problem is because of https://www.npmjs.com/package/pino-sentry, which uses v7 of the SDK, see https://github.com/aandrewww/pino-sentry/blob/master/package.json#L37. This has to be updated to be compatible with v8! I opened an issue for this: aandrewww/pino-sentry#68 |
Indeed we did not, we relied on the changelog, which didn't mention it. I'll take a peek today, thanks for the pointer :)
Thanks ! |
@lcsvcn also for your original issue, I think the most likely cause is that there is somehow an older version of Sentry installed & used as well - could that be the case? FWIW we are looking into ways to make this less likely to break, but in any case such a setup would always be subject to have problems, so this should be resolved in any case - there should always just be a single version of Sentry installed and run in your app! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Self Hosted
Which SDK are you using?
@sentry/node
SDK Version
8.0.0
Framework Version
"@sentry/node": "^8.0.0",
Link to Sentry event
no link, setup issue.
SDK Setup
Steps to Reproduce
Expected Result
Application start normal
Actual Result
The text was updated successfully, but these errors were encountered: