You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -944,7 +944,7 @@
944
944
"category": "Error",
945
945
"code": 1322
946
946
},
947
-
"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'.": {
947
+
"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'.": {
948
948
"category": "Error",
949
949
"code": 1323
950
950
},
@@ -1020,7 +1020,7 @@
1020
1020
"category": "Error",
1021
1021
"code": 1342
1022
1022
},
1023
-
"The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'.": {
1023
+
"The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', 'system', 'node12', or 'nodenext'.": {
1024
1024
"category": "Error",
1025
1025
"code": 1343
1026
1026
},
@@ -1152,7 +1152,7 @@
1152
1152
"category": "Message",
1153
1153
"code": 1377
1154
1154
},
1155
-
"Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext'or 'system', and the 'target' option is set to 'es2017' or higher.": {
1155
+
"Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.": {
1156
1156
"category": "Error",
1157
1157
"code": 1378
1158
1158
},
@@ -1368,14 +1368,22 @@
1368
1368
"category": "Error",
1369
1369
"code": 1431
1370
1370
},
1371
-
"Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext'or 'system', and the 'target' option is set to 'es2017' or higher.": {
1371
+
"Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.": {
1372
1372
"category": "Error",
1373
1373
"code": 1432
1374
1374
},
1375
1375
"Decorators may not be applied to 'this' parameters.": {
1376
1376
"category": "Error",
1377
1377
"code": 1433
1378
1378
},
1379
+
"The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.": {
1380
+
"category": "Error",
1381
+
"code": 1434
1382
+
},
1383
+
"Module '{0}' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead.": {
1384
+
"category": "Error",
1385
+
"code": 1435
1386
+
},
1379
1387
1380
1388
"The types of '{0}' are incompatible between these types.": {
0 commit comments