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
+65-9Lines changed: 65 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -635,7 +635,7 @@
635
635
"category": "Error",
636
636
"code": 1203
637
637
},
638
-
"Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.": {
638
+
"Re-exporting a type when '{0}' is enabled requires using 'export type'.": {
639
639
"category": "Error",
640
640
"code": 1205
641
641
},
@@ -647,10 +647,6 @@
647
647
"category": "Error",
648
648
"code": 1207
649
649
},
650
-
"'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.": {
651
-
"category": "Error",
652
-
"code": 1208
653
-
},
654
650
"Invalid optional chain from new expression. Did you mean to call '{0}()'?": {
655
651
"category": "Error",
656
652
"code": 1209
@@ -871,7 +867,7 @@
871
867
"category": "Error",
872
868
"code": 1268
873
869
},
874
-
"Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided.": {
870
+
"Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled.": {
875
871
"category": "Error",
876
872
"code": 1269
877
873
},
@@ -915,6 +911,42 @@
915
911
"category": "Error",
916
912
"code": 1279
917
913
},
914
+
"Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement.": {
915
+
"category": "Error",
916
+
"code": 1280
917
+
},
918
+
"Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead.": {
919
+
"category": "Error",
920
+
"code": 1281
921
+
},
922
+
"An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type.": {
923
+
"category": "Error",
924
+
"code": 1282
925
+
},
926
+
"An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration.": {
927
+
"category": "Error",
928
+
"code": 1283
929
+
},
930
+
"An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type.": {
931
+
"category": "Error",
932
+
"code": 1284
933
+
},
934
+
"An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration.": {
935
+
"category": "Error",
936
+
"code": 1285
937
+
},
938
+
"ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.": {
939
+
"category": "Error",
940
+
"code": 1286
941
+
},
942
+
"A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled.": {
943
+
"category": "Error",
944
+
"code": 1287
945
+
},
946
+
"An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled.": {
947
+
"category": "Error",
948
+
"code": 1288
949
+
},
918
950
919
951
"'with' statements are not allowed in an async function block.": {
920
952
"category": "Error",
@@ -1444,7 +1476,7 @@
1444
1476
"category": "Error",
1445
1477
"code": 1446
1446
1478
},
1447
-
"'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled.": {
1479
+
"'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled.": {
1448
1480
"category": "Error",
1449
1481
"code": 1448
1450
1482
},
@@ -1557,6 +1589,14 @@
1557
1589
"category": "Message",
1558
1590
"code": 1483
1559
1591
},
1592
+
"'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.": {
1593
+
"category": "Error",
1594
+
"code": 1484
1595
+
},
1596
+
"'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.": {
1597
+
"category": "Error",
1598
+
"code": 1485
1599
+
},
1560
1600
1561
1601
"The types of '{0}' are incompatible between these types.": {
1562
1602
"category": "Error",
@@ -3223,7 +3263,7 @@
3223
3263
"category": "Error",
3224
3264
"code": 2747
3225
3265
},
3226
-
"Cannot access ambient const enums when the '--isolatedModules' flag is provided.": {
3266
+
"Cannot access ambient const enums when '{0}' is enabled.": {
3227
3267
"category": "Error",
3228
3268
"code": 2748
3229
3269
},
@@ -4217,7 +4257,7 @@
4217
4257
"category": "Error",
4218
4258
"code": 5090
4219
4259
},
4220
-
"Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled.": {
4260
+
"Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled.": {
4221
4261
"category": "Error",
4222
4262
"code": 5091
4223
4263
},
@@ -4269,6 +4309,18 @@
4269
4309
"category": "Error",
4270
4310
"code": 5103
4271
4311
},
4312
+
"Option '{0}' is redundant and cannot be specified with option '{1}'.": {
4313
+
"category": "Error",
4314
+
"code": 5104
4315
+
},
4316
+
"Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'.": {
4317
+
"category": "Error",
4318
+
"code": 5105
4319
+
},
4320
+
"Use '{0}' instead.": {
4321
+
"category": "Message",
4322
+
"code": 5106
4323
+
},
4272
4324
4273
4325
"Generates a sourcemap for each corresponding '.d.ts' file.": {
4274
4326
"category": "Message",
@@ -6003,6 +6055,10 @@
6003
6055
"category": "Message",
6004
6056
"code": 6803
6005
6057
},
6058
+
"Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.": {
0 commit comments