Error when using fragment with jsxFactory

This commit is contained in:
uniqueiniquity
2017-10-24 12:54:21 -07:00
parent 961495bb79
commit 5dd1a47c6b
2 changed files with 9 additions and 0 deletions

View File

@@ -14076,6 +14076,11 @@ namespace ts {
function checkJsxFragment(node: JsxFragment): Type {
checkJsxOpeningLikeElementOrOpeningFragment(node.openingFragment);
if (compilerOptions.jsx === JsxEmit.React && compilerOptions.jsxFactory) {
error(node, Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory);
}
return getJsxGlobalElementType() || anyType;
}

View File

@@ -3615,6 +3615,10 @@
"category": "Error",
"code": 17015
},
"JSX fragment is not supported when using --jsxFactory": {
"category": "Error",
"code":17016
},
"Circularity detected while resolving configuration: {0}": {
"category": "Error",