Skip to content

Instantly share code, notes, and snippets.

@serkan-ozal
Created December 8, 2025 15:29
Show Gist options
  • Select an option

  • Save serkan-ozal/ac6623e13fdf31854ad65fdf16a756a6 to your computer and use it in GitHub Desktop.

Select an option

Save serkan-ozal/ac6623e13fdf31854ad65fdf16a756a6 to your computer and use it in GitHub Desktop.
AWS Lambda Nodejs CJS Module Load StackTrace in Nodejs v22
at Object.<anonymous> (/var/task/index.js:2:13)
at Module._compile (node:internal/modules/cjs/loader:1706:14)
at Object..js (node:internal/modules/cjs/loader:1839:10)
at Module.load (node:internal/modules/cjs/loader:1441:32)
at Function._load (node:internal/modules/cjs/loader:1263:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
at Module.<anonymous> (node:internal/modules/cjs/loader:1463:12)
at Module.T (/opt/wrapper.js:1:172790)
at _require.o.require (/opt/wrapper.js:1:174123)
at Module.T (/opt/wrapper.js:1:172790)
at _require.o.require (/opt/wrapper.js:1:174123)
at require (node:internal/modules/helpers:147:16)
at _tryRequireFile (file:///var/runtime/index.mjs:1092:37)
at _tryRequire (file:///var/runtime/index.mjs:1151:25)
at _loadUserApp (file:///var/runtime/index.mjs:1186:22)
at UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1235:27)
at start (file:///var/runtime/index.mjs:1454:42)
at file:///var/runtime/index.mjs:1464:7
at ModuleJob.run (node:internal/modules/esm/module_job:345:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment