-
-
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/* 7.68.0 breaks @sentry/profiling-node latest #8965
Comments
Hey @tomgrossman which TypeScript version are you using? Just wondering if this is related to #8954 |
@Lms24 |
I tried to reproduce this with a barebones Node + Typescript app and couldn't get the type error. It's a little weird because we didn't change anything in the Before you get started though, it might be worthwhile to check for version mismatches:
|
@Lms24 "@sentry/integrations": "^7.67.0",
"@sentry/node": "^7.67.0",
"@sentry/profiling-node": "^1.2.1",
"@sentry/tracing": "^7.67.0", and the "node_modules/@sentry/hub": {
"version": "7.66.0",
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-7.66.0.tgz",
"integrity": "sha512-T+xtxbZm+ZjZxzCKubI4GzYEju2PBK6jYLOk+E/5xVUX029H4qkDLwqk+NlEH7KzgaJIZBRos5CC0+wWCem6PQ==",
"dependencies": {
"@sentry/core": "7.66.0",
"@sentry/types": "7.66.0",
"@sentry/utils": "7.66.0",
"tslib": "^2.4.1 || ^1.9.3"
},
"engines": {
"node": ">=8"
}
} it comes from the dependencies of "node_modules/@sentry/profiling-node": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/@sentry/profiling-node/-/profiling-node-1.2.1.tgz",
"integrity": "sha512-+bu3qRG5Yd7a34YhkHfnfkrwPmsAPdp5cUhIx5BKit4hQf7zUaIw9UOUI/+VvK9rn8SUhC0oLNQf6HQJ0CIFUQ==",
"hasInstallScript": true,
"dependencies": {
"@sentry/core": "^7.64.0",
"@sentry/hub": "^7.64.0",
"@sentry/node": "^7.64.0",
"@sentry/types": "^7.64.0",
"@sentry/utils": "^7.64.0",
"detect-libc": "^2.0.1",
"node-abi": "^3.28.0",
"node-gyp": "^9.3.0"
},
"bin": {
"sentry-prune-profiler-binaries": "scripts/prune-profiler-binaries.mjs"
},
"engines": {
"node": ">=8.0.0"
}
} Which of course installs the core, types, etc... with explicit But, when updating the In order to reproduce it in your repository:
"dependencies": {
"@sentry/hub": "7.66.0",
"@sentry/integrations": "7.66.0",
"@sentry/node": "7.66.0",
"@sentry/profiling-node": "^1.2.1"
}
"dependencies": {
"@sentry/integrations": "7.67.0",
"@sentry/node": "7.67.0",
"@sentry/profiling-node": "^1.2.1"
}
"dependencies": {
"@sentry/integrations": "^7.67.0",
"@sentry/node": "^7.67.0",
"@sentry/profiling-node": "^1.2.1"
}
"dependencies": {
"@sentry/integrations": "^7.68.0",
"@sentry/node": "^7.68.0",
"@sentry/profiling-node": "^1.2.1"
} |
I think you just need to ensure to deduplicate your dependencies. E.g. remove all (For reference: getsentry/profiling-node#195) |
@mydea yes of course this solves the issue, but it's not viable for Dependabot/Renovate/Etc... |
As far as I can tell it does depend on minor versions? 🤔 |
@mydea oops, you are right. It doesn't change the issue that is still not supported by automated dependency managements (dependabot, renovate). |
Yeah this is a general problem with package managers and deduplication 😬 In the medium run the solution for this is to merge |
@mydea yea, I get it. Unfortunately manually deleting and regenerating the I guess we will have to re-think about auto updating Sentry packages until this solved :( |
yes, I fear for now the best approach is to manually update sentry packages (also to ensure all are always in sync) - not ideal, but we're working on making this less painful in the future! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
@sentry/* - 7.68.0, @sentry/profiling-node - 1.2.1
Works fine with versions
7.67.0
Framework Version
Node 18.12.1 Nest.js 10.1.17
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
@sentry/profiling-node
Expected Result
build successfully :)
Actual Result
Error thrown during
nest build
:Works fine with versions
7.67.0
The text was updated successfully, but these errors were encountered: