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/node
SDK Version
8.9.1
Framework Version
Node 21.4.0
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
- Create a new project
npm init
- Install dependencies
npm i typescript @sentry/profiling-node
- Add a tsconfig.json
{
"compilerOptions": {
"strict": true
}
}
- Create a file and import the module
import { nodeProfilingIntegration } from '@sentry/profiling-node';
Expected Result
Types are found
Actual Result
Types are not found. Error message in VS Code:
Could not find a declaration file for module '@sentry/profiling-node'. '/Users/[redacted]/sentry-types/node_modules/@sentry/profiling-node/lib/cjs/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';`
Looking at the package.json
file in the module, it specifies lib/types/index.d.ts
for the types:
{
...
"types": "lib/types/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/types/index.d.ts",
"default": "./lib/esm/index.js"
},
"require": {
"types": "./lib/types/index.d.ts",
"default": "./lib/cjs/index.js"
}
}
},
...
}
However there is no file at that location.

Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Product Owner