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
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1028,11 +1028,11 @@
1028
1028
"category": "Error",
1029
1029
"code": 1322
1030
1030
},
1031
-
"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'.": {
1031
+
"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', or 'nodenext'.": {
1032
1032
"category": "Error",
1033
1033
"code": 1323
1034
1034
},
1035
-
"Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'.": {
1035
+
"Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'.": {
1036
1036
"category": "Error",
1037
1037
"code": 1324
1038
1038
},
@@ -1100,7 +1100,7 @@
1100
1100
"category": "Error",
1101
1101
"code": 1341
1102
1102
},
1103
-
"The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.": {
1103
+
"The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', or 'nodenext'.": {
1104
1104
"category": "Error",
1105
1105
"code": 1343
1106
1106
},
@@ -1220,7 +1220,7 @@
1220
1220
"category": "Message",
1221
1221
"code": 1377
1222
1222
},
1223
-
"Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.": {
1223
+
"Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.": {
1224
1224
"category": "Error",
1225
1225
"code": 1378
1226
1226
},
@@ -1424,7 +1424,7 @@
1424
1424
"category": "Error",
1425
1425
"code": 1431
1426
1426
},
1427
-
"Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.": {
1427
+
"Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.": {
1428
1428
"category": "Error",
1429
1429
"code": 1432
1430
1430
},
@@ -3788,15 +3788,15 @@
3788
3788
"category": "Error",
3789
3789
"code": 2820
3790
3790
},
3791
-
"Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'.": {
3791
+
"Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'.": {
3792
3792
"category": "Error",
3793
3793
"code": 2821
3794
3794
},
3795
3795
"Import assertions cannot be used with type-only imports or exports.": {
3796
3796
"category": "Error",
3797
3797
"code": 2822
3798
3798
},
3799
-
"Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'.": {
3799
+
"Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'.": {
3800
3800
"category": "Error",
3801
3801
"code": 2823
3802
3802
},
@@ -3876,7 +3876,7 @@
3876
3876
"category": "Error",
3877
3877
"code": 2853
3878
3878
},
3879
-
"Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.": {
3879
+
"Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.": {
0 commit comments