diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index b1a12937662..b21e238a729 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -10612,7 +10612,7 @@ namespace ts { const targetTypes = (target as IntersectionType).types; const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode); const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode); - if (intrinsicAttributes !== unknownType && intrinsicClassAttributes !== unknownType && + if (intrinsicAttributes !== errorType && intrinsicClassAttributes !== errorType && (contains(targetTypes, intrinsicAttributes) || contains(targetTypes, intrinsicClassAttributes))) { // do not report top error return result;