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
Line_terminator_not_permitted_before_arrow: {code: 1200,category: DiagnosticCategory.Error,key: "Line terminator not permitted before arrow."},
161
161
A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration: {code: 1201,category: DiagnosticCategory.Error,key: "A type annotation on an export statement is only allowed in an ambient external module declaration."},
162
+
Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead: {code: 1202,category: DiagnosticCategory.Error,key: "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead."},
163
+
Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead: {code: 1203,category: DiagnosticCategory.Error,key: "Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead."},
164
+
Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher: {code: 1204,category: DiagnosticCategory.Error,key: "Cannot compile external modules into amd or commonjs when targeting es6 or higher."},
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: {code: 2301,category: DiagnosticCategory.Error,key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},
164
167
Static_members_cannot_reference_class_type_parameters: {code: 2302,category: DiagnosticCategory.Error,key: "Static members cannot reference class type parameters."},
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -627,6 +627,18 @@
627
627
"category": "Error",
628
628
"code": 1201
629
629
},
630
+
"Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead.": {
631
+
"category": "Error",
632
+
"code": 1202
633
+
},
634
+
"Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead.": {
635
+
"category": "Error",
636
+
"code": 1203
637
+
},
638
+
"Cannot compile external modules into amd or commonjs when targeting es6 or higher.": {
0 commit comments