Node.jsRunbook 0/2 done
ERR_MODULE_NOT_FOUND
Node.js Error ERR_MODULE_NOT_FOUND: Cannot find module (ESM)
Error✕ Not retryable · fix the payloadRuntime
TL;DR · 10-second read
ESM requires full relative paths with file extensions; there is no index.js or extension guessing. Import "./utils/db.js" (also from TypeScript sources with NodeNext).
Identify: does your log match?
What you see · exact log / response
node:internal/modules/esm/resolve:283
throw new ERR_MODULE_NOT_FOUND(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/dist/utils/db' imported from /app/dist/index.js
Did you mean to import "./utils/db.js"?Fix
Being written
Copy-paste fixes for ERR_MODULE_NOT_FOUND are in the enrichment queue
The summary above is verified. Paste your full trace into the decoder for a diagnosis now.
Open the decoder →Related errors
Last verified 2026-10-14 · Source: POSIX errno + Node.js ERR_* codes (doc/api/errors.md) · Official docs ↗ · ~12,100 searches/mo