Error Code Portal
Node.jsNode.jsError code

ERR_REQUIRE_ASYNC_MODULE

require async module

Code ERR_REQUIRE_ASYNC_MODULE · An issue reported by Node.js.

When trying to require() an ES Module, the module turns out to be asynchronous. That is, it contains top-level await. When uncaught, the flag --experimental-print-required-tla prints the locations of the top-level awaits in the graph to stderr. This error has the following additional non-enumerable properties:

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.