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
+33-9Lines changed: 33 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1472,7 +1472,7 @@
1472
1472
"category": "Message",
1473
1473
"code": 1449
1474
1474
},
1475
-
"Dynamic imports can only accept a module specifier and an optional assertion as arguments": {
1475
+
"Dynamic imports can only accept a module specifier and an optional set of attributes as arguments": {
1476
1476
"category": "Message",
1477
1477
"code": 1450
1478
1478
},
@@ -1520,6 +1520,18 @@
1520
1520
"category": "Message",
1521
1521
"code": 1461
1522
1522
},
1523
+
"The 'resolution-mode' attribute is only supported when 'moduleResolution' is 'node16' or 'nodenext'.": {
1524
+
"category": "Error",
1525
+
"code": 1462
1526
+
},
1527
+
"'resolution-mode' is the only valid key for type import attributes.": {
1528
+
"category": "Error",
1529
+
"code": 1463
1530
+
},
1531
+
"Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'.": {
1532
+
"category": "Error",
1533
+
"code": 1464
1534
+
},
1523
1535
1524
1536
"The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.": {
1525
1537
"category": "Error",
@@ -1625,6 +1637,10 @@
1625
1637
"category": "Error",
1626
1638
"code": 1495
1627
1639
},
1640
+
"Identifier, string literal, or number literal expected.": {
1641
+
"category": "Error",
1642
+
"code": 1496
1643
+
},
1628
1644
1629
1645
"The types of '{0}' are incompatible between these types.": {
1630
1646
"category": "Error",
@@ -3579,6 +3595,10 @@
3579
3595
"category": "Error",
3580
3596
"code": 2822
3581
3597
},
3598
+
"Import attributes are only supported when the '--module' option is set to 'esnext' or 'nodenext'.": {
3599
+
"category": "Error",
3600
+
"code": 2823
3601
+
},
3582
3602
"Cannot find namespace '{0}'. Did you mean '{1}'?": {
3583
3603
"category": "Error",
3584
3604
"code": 2833
@@ -3611,10 +3631,6 @@
3611
3631
"category": "Error",
3612
3632
"code": 2840
3613
3633
},
3614
-
"The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.": {
3615
-
"category": "Error",
3616
-
"code": 2841
3617
-
},
3618
3634
"'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?": {
3619
3635
"category": "Error",
3620
3636
"code": 2842
@@ -3667,6 +3683,18 @@
3667
3683
"category": "Error",
3668
3684
"code": 2855
3669
3685
},
3686
+
"Import attributes are not allowed on statements that transpile to CommonJS 'require' calls.": {
3687
+
"category": "Error",
3688
+
"code": 2856
3689
+
},
3690
+
"Import attributes cannot be used with type-only imports or exports.": {
3691
+
"category": "Error",
3692
+
"code": 2857
3693
+
},
3694
+
"Import attribute values must be string literal expressions.": {
3695
+
"category": "Error",
3696
+
"code": 2858
3697
+
},
3670
3698
3671
3699
"Import declaration '{0}' is using private name '{1}'.": {
3672
3700
"category": "Error",
@@ -4100,10 +4128,6 @@
4100
4128
"category": "Error",
4101
4129
"code": 4124
4102
4130
},
4103
-
"'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.": {
4104
-
"category": "Error",
4105
-
"code": 4125
4106
-
},
4107
4131
4108
4132
"The current host does not support the '{0}' option.": {
0 commit comments