ERR_REQUIRE_ASYNC_MODULE: why require() won't wait for you
Node throws ERR_REQUIRE_ASYNC_MODULE when require() hits an ESM module with top-level await in its graph. Here's the whole mechanism and the fix that holds up.
Node throws ERR_REQUIRE_ASYNC_MODULE when require() hits an ESM module with top-level await in its graph. Here's the whole mechanism and the fix that holds up.