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
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -939,7 +939,7 @@
939
939
"category": "Error",
940
940
"code": 1285
941
941
},
942
-
"ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.": {
942
+
"ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'.": {
943
943
"category": "Error",
944
944
"code": 1286
945
945
},
@@ -967,14 +967,18 @@
967
967
"category": "Error",
968
968
"code": 1292
969
969
},
970
-
"ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.": {
970
+
"ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.": {
971
971
"category": "Error",
972
972
"code": 1293
973
973
},
974
974
"This syntax is not allowed when 'erasableSyntaxOnly' is enabled.": {
975
975
"category": "Error",
976
976
"code": 1294
977
977
},
978
+
"ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript.": {
979
+
"category": "Error",
980
+
"code": 1295
981
+
},
978
982
"'with' statements are not allowed in an async function block.": {
0 commit comments