You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone [email protected]:vpmedia/express-template.git
cd express-template
npm install
npm start
Steps to Reproduce
See reproduction example.
Expected Result
Loading and instrumenting working.
Actual Result
Error: 'import-in-the-middle' failed to wrap 'file:///Users/andras/Developer/OSS/express-template/node_modules/@prisma/client/default.js'
at getSource (/Users/andras/Developer/OSS/express-template/node_modules/import-in-the-middle/hook.js:304:21)
at async load (/Users/andras/Developer/OSS/express-template/node_modules/import-in-the-middle/hook.js:319:26)
at async nextLoad (node:internal/modules/esm/hooks:746:22)
at async Hooks.load (node:internal/modules/esm/hooks:383:20)
at async handleMessage (node:internal/modules/esm/worker:199:18) {
cause: Error: Unexpected import statement in CJS module.
at @:2:8
at esmSyntaxErr (/Users/andras/Developer/OSS/express-template/node_modules/cjs-module-lexer/lexer.js:1153:24)
at throwIfImportStatement (/Users/andras/Developer/OSS/express-template/node_modules/cjs-module-lexer/lexer.js:1183:13)
at parseSource (/Users/andras/Developer/OSS/express-template/node_modules/cjs-module-lexer/lexer.js:113:13)
at parseCJS (/Users/andras/Developer/OSS/express-template/node_modules/cjs-module-lexer/lexer.js:43:5)
at getCjsExports (/Users/andras/Developer/OSS/express-template/node_modules/import-in-the-middle/lib/get-exports.js:37:20)
at getExports (/Users/andras/Developer/OSS/express-template/node_modules/import-in-the-middle/lib/get-exports.js:100:12)
at async /Users/andras/Developer/OSS/express-template/node_modules/import-in-the-middle/lib/get-exports.js:48:28
at async Promise.all (index 0)
at async getCjsExports (/Users/andras/Developer/OSS/express-template/node_modules/import-in-the-middle/lib/get-exports.js:40:5)
at async /Users/andras/Developer/OSS/express-template/node_modules/import-in-the-middle/lib/get-exports.js:48:28 {
code: 'ERR_LEXER_ESM_SYNTAX',
loc: 27
}
}
TypeError [ERR_INVALID_RETURN_PROPERTY_VALUE]: Expected string, array buffer, or typed array to be returned for the "source" from the "load" hook but got undefined.
at assertBufferSource (node:internal/modules/esm/translators:125:9)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:160:3)
at callTranslator (node:internal/modules/esm/loader:439:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:445:30) {
code: 'ERR_INVALID_RETURN_PROPERTY_VALUE'
The text was updated successfully, but these errors were encountered:
If you update to [email protected] this should be fixed. You can do that by removing your lock file and reinstalling your dependencies or I think npm update import-in-the-middle should do it.
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
8.15.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup/Reproduction Example
Steps to Reproduce
See reproduction example.
Expected Result
Loading and instrumenting working.
Actual Result
The text was updated successfully, but these errors were encountered: