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 141140e commit a873a22Copy full SHA for a873a22
src/node_contextify.cc
@@ -1852,7 +1852,8 @@ bool ShouldRetryAsESM(Realm* realm,
1852
"To use top-level await, add \"type\": \"module\" to your "
1853
"package.json "
1854
"or rename the file to use the .mjs extension. Alternatively, wrap "
1855
- "the await expression in an async function.";
+ "the await expression in an async function. Module syntax like "
1856
+ "import/export statements requires proper module configuration.";
1857
1858
isolate->ThrowException(v8::Exception::SyntaxError(
1859
String::NewFromUtf8(isolate, error_text).ToLocalChecked()));
0 commit comments