当尝试 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:
修改记录:English prose extracted; whitespace normalized; Korean context and classified official links added. Python code examples not redistributed. 译文说明已标注为自动翻译。