getsentry / profiling-node

The code for this repo now lives in https://github.com/getsentry/sentry-javascript/tree/develop/packages/profiling-node
MIT License
29 stars 10 forks source link

Type error in 8.9.1 #245

Open joelbarnard opened 3 months ago

joelbarnard commented 3 months ago

Is there an existing issue for this?

SDK Version

8.9.1

What environment is your node script running in?

Compiling with: npx tsc

Are you using an alpine based docker image?

Does the failure occur on a remote environment only?

Are you using alpine based node docker image. If so, what version are you using? e.g node:16-alpine3.12

No response

If you are using alpine, have you tried using latest version of alpine or (currently alpine3.16 or alpine3.17)?

Have you tried using the latest minor version of node (currently 16.20 or 18.15)?

If you run npm install --verbose --foreground-scripts @sentry/profiling-node in an empty directory, what is the output?

Error when running: npx tsc (Works in 8.8)

file.mts:2:40 - error TS7016: Could not find a declaration file for module '@sentry/profiling-node'. '/src/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';

2 import {nodeProfilingIntegration} from "@sentry/profiling-node";



### Crash report

_No response_