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 bc0d3e1 commit 161535bCopy full SHA for 161535b
src/compiler/checker.ts
@@ -18812,7 +18812,7 @@ namespace ts {
18812
}
18813
18814
function checkImportMetaProperty(node: MetaProperty) {
18815
- if (languageVersion < ScriptTarget.ESNext && moduleKind < ModuleKind.ESNext) {
+ if (languageVersion < ScriptTarget.ESNext || moduleKind < ModuleKind.ESNext) {
18816
error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options);
18817
18818
const file = getSourceFileOfNode(node);
0 commit comments