エラーコードポータル
Node.jsNode.jsエラーコード

ERR_REQUIRE_ASYNC_MODULE

require async module

コード ERR_REQUIRE_ASYNC_MODULE · Node.jsが報告した問題です。

ES モジュールを require() しようとすると、モジュールが非同期であることがわかります。つまり、トップレベルの await が含まれています。 キャッチされない場合、フラグ --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:

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。