File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28103,7 +28103,7 @@ namespace ts {
28103
28103
28104
28104
function checkGrammarImportCallExpression(node: ImportCall): boolean {
28105
28105
if (moduleKind === ModuleKind.ES2015) {
28106
- return grammarErrorOnNode(node, Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules );
28106
+ return grammarErrorOnNode(node, Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_Please_use_esnext_or_commonjs_as_module_compiler_option );
28107
28107
}
28108
28108
28109
28109
if (node.typeArguments) {
Original file line number Diff line number Diff line change 895
895
"category" : " Error" ,
896
896
"code" : 1322
897
897
},
898
- "Dynamic import cannot be used when targeting ECMAScript 2015 modules." : {
898
+ "Dynamic import cannot be used when targeting ECMAScript 2015 modules. Please use 'esnext' or 'commonjs' as module compiler option. " : {
899
899
"category" : " Error" ,
900
900
"code" : 1323
901
901
},
You can’t perform that action at this time.
0 commit comments