Repository navigation
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/profiling-node
SDK Version
^8.10.0
Framework Version
v22.3.0
Link to Sentry event
SDK Setup
const options: NodeOptions = {
dsn: SENTRY_DSN.toString(),
environment: NODE_ENV,
integrations: [nodeProfilingIntegration()],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
}
Sentry.init(options)Steps to Reproduce
diff --git a/package.json b/package.json
index ffb7a5f..0cc1896 100644
--- a/package.json
+++ b/package.json
@@ -47,9 +47,9 @@
"test": "vitest"
},
"dependencies": {
- "@sentry/google-cloud-serverless": "^8.9.2",
- "@sentry/node": "^8.9.2",
- "@sentry/profiling-node": "^8.9.2",
+ "@sentry/google-cloud-serverless": "^8.10.0",
+ "@sentry/node": "^8.10.0",
+ "@sentry/profiling-node": "^8.10.0",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"openai": "^4.51.0"Expected Result
❯ pnpm build
> @natoboram/bug-report-sentry@0.0.0 build /home/nato/Code/github.com/NatoBoram/bug-report-sentry
> tscActual Result
❯ pnpm build
> @natoboram/bug-report-sentry@0.0.0 build /home/nato/Code/github.com/NatoBoram/bug-report-sentry
> tsc
src/app.ts:3:42 - error TS7016: Could not find a declaration file for module '@sentry/profiling-node'. '/home/nato/Code/github.com/NatoBoram/bug-report-sentry/node_modules/.pnpm/@sentry+profiling-node@8.10.0/node_modules/@sentry/profiling-node/lib/esm/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/sentry__profiling-node` if it exists or add a new declaration (.d.ts) file containing `declare module '@sentry/profiling-node';`
3 import { nodeProfilingIntegration } from "@sentry/profiling-node"
~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in src/app.ts:3
ELIFECYCLE Command failed with exit code 2.Reacted by Anton Honda, Damian Senn, Vasil, pquerner, Anton Begehr, René, Simon Depelchin, Alex, Joshua Wu, Iakhub Seitasanov and 1 more
Metadata
Metadata
Assignees
Labels
No labels
Projects
- StatusShow more project fieldsNo status
Activity
depsimon commentedon Jun 20, 2024
It seems the
./lib/types/index.d.tsis not generated/included in the built package.mat813 commentedon Jun 20, 2024
I think it's the same problem that for 8.10.0
AbhiPrasad commentedon Jun 20, 2024
Sorry for the trouble - I fixed this with #12564, we'll be getting a release out soon!
AbhiPrasad commentedon Jun 21, 2024
Released a fix with https://github.com/getsentry/sentry-javascript/releases/tag/8.11.0 - thanks for your patience everyone.
NatoBoram commentedon Jun 21, 2024
Confirmed. Thanks!