-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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.39.0
Framework Version
Express 5.0.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
After version 8.39.0, only if i import:
import * as Sentry from "@sentry/node";
i get this error:
/workspace/node_modules/@sentry/node/build/cjs/integrations/contextlines.js:12
const LRU_FILE_CONTENTS_CACHE = new core.LRUMap(10);
^
TypeError: core.LRUMap is not a constructor
at Object. (/workspace/node_modules/@sentry/node/src/integrations/contextlines.ts:7:33)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._compile (/workspace/node_modules/pirates/lib/index.js:117:24)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Object.newLoader [as .js] (/workspace/node_modules/pirates/lib/index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/workspace/node_modules/@sentry/node/build/cjs/index.js:8:22)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._compile (/workspace/node_modules/pirates/lib/index.js:117:24)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Object.newLoader [as .js] (/workspace/node_modules/pirates/lib/index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/workspace/src/app.js:3:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._compile (/workspace/node_modules/pirates/lib/index.js:117:24)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Object.newLoader [as .js] (/workspace/node_modules/pirates/lib/index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.runMain (node:internal/modules/run_main:135:12)
at Object. (/workspace/node_modules/@babel/node/src/_babel-node.ts:159:12)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Steps to Reproduce
- Install version after 8.39.0
- Import sentry
Expected Result
The project to run normally.
Actual Result
The project start fails with an error.
Metadata
Metadata
Assignees
Labels
Projects
Status