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
Googling points me to this repository.
An app fails with
Error: 'import-in-the-middle' failed to wrap 'file:///app/node_modules/@prisma/client/default.js'
at getSource (/app/node_modules/import-in-the-middle/hook.js:304:21)
at async load (/app/node_modules/import-in-the-middle/hook.js:319:26)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:447:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
cause: Error: Unexpected import statement in CJS module.
at @:1:8
at esmSyntaxErr (/app/node_modules/cjs-module-lexer/lexer.js:1153:24)
at throwIfImportStatement (/app/node_modules/cjs-module-lexer/lexer.js:1183:13)
at parseSource (/app/node_modules/cjs-module-lexer/lexer.js:113:13)
at parseCJS (/app/node_modules/cjs-module-lexer/lexer.js:43:5)
at getCjsExports (/app/node_modules/import-in-the-middle/lib/get-exports.js:37:20)
at getExports (/app/node_modules/import-in-the-middle/lib/get-exports.js:100:12)
at async /app/node_modules/import-in-the-middle/lib/get-exports.js:48:28
at async Promise.all (index 0)
at async getCjsExports (/app/node_modules/import-in-the-middle/lib/get-exports.js:40:5)
at async /app/node_modules/import-in-the-middle/lib/get-exports.js:48:28 {
code: 'ERR_LEXER_ESM_SYNTAX',
loc: 7
}
}
after updating dependencies and implementing some feature on my code not affecting sentry or prisma.
Steps to Reproduce the Problem
Create ESM project
Install prisma
Install @sentry/node
build and deploy project on Google Cloud Run
Specifications
Version: 1.8.1
Platform: node:18-alpine on Google Cloud Run
Subsystem: NodeJS 18.20.3
The text was updated successfully, but these errors were encountered:
Expected Behavior
An app should run successfully
Actual Behavior
Googling points me to this repository.
An app fails with
after updating dependencies and implementing some feature on my code not affecting sentry or prisma.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: