# language
## Entries4 knowledge objects
Node.js ERR_REQUIRE_ESM: require() of an ES Module is not supported
mediumA CommonJS file tried to require() an ES module. Since Node 22.12 this is allowed for modules that are fully synchronous, so on a current runtime the error usually means the module contains top-level await — a different failure that most advice about this error predates.
/k/node-err-require-esm · language · 2 sources · verified 2026-08-08 · ERR_REQUIRE_ESM ERR_REQUIRE_ASYNC_MODULE
Node.js FATAL ERROR: JavaScript heap out of memory
mediumV8 hit its heap ceiling and gave up. Two different ceilings can cause it — V8's own --max-old-space-size and the container's memory limit — and they fail differently. Raising the wrong one either does nothing or gets the process killed instead.
/k/node-javascript-heap-out-of-memory · language · 2 sources · verified 2026-08-08 · ERR_WORKER_OUT_OF_MEMORY
npm ERESOLVE: unable to resolve dependency tree
mediumTwo packages demand incompatible versions of the same peer dependency and npm refuses to guess. The two flags everyone reaches for are not equivalent: --legacy-peer-deps ignores peer constraints entirely, while overrides pins one version deliberately. Only the second leaves a tree you can reason about.
/k/npm-eresolve-peer-dependency · language · 2 sources · verified 2026-08-08 · ERESOLVE
Python ModuleNotFoundError: No module named 'x'
mediumPython looked along sys.path and did not find the module. Which directories are on that path depends on how the interpreter was started — not on where you are standing in the shell — and that is why the same code runs one way and fails another.
/k/python-modulenotfounderror · language · 2 sources · verified 2026-08-08 · ModuleNotFoundError ImportError