We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb74388 commit 01b4b6dCopy full SHA for 01b4b6d
src/node_contextify.cc
@@ -1826,7 +1826,8 @@ bool ShouldRetryAsESM(Realm* realm,
1826
"To use top-level await, add \"type\": \"module\" to your "
1827
"package.json "
1828
"or rename the file to use the .mjs extension. Alternatively, wrap "
1829
- "the await expression in an async function.";
+ "the await expression in an async function. Module syntax like "
1830
+ "import/export statements requires proper module configuration.";
1831
1832
isolate->ThrowException(v8::Exception::SyntaxError(
1833
String::NewFromUtf8(isolate, error_text).ToLocalChecked()));
0 commit comments