错误代码门户
Node.jsNode.js错误代码

ERR_REQUIRE_ASYNC_MODULE

require async module

代码 ERR_REQUIRE_ASYNC_MODULE · Node.js 报告的问题。

当尝试 require() 一个 ES 模块时,该模块结果是异步的。也就是说,它包含顶级等待。 当未捕获时,标志 --experimental-print-required-tla 将图中顶级等待的位置打印到 stderr。 此错误具有以下附加的不可枚举属性:

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

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:

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。