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
!!! error TS1259: Module '"tests/cases/compiler/b"' can only be default-imported using the 'esModuleInterop' flag
14
-
!!! related TS2594 tests/cases/compiler/b.d.ts:4:1: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
14
+
!!! related TS2594 tests/cases/compiler/b.d.ts:4:1: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
!!! error TS1259: Module '"interface"' can only be default-imported using the 'esModuleInterop' flag
80
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:6:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
80
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:6:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
81
81
import x2 from "variable";
82
82
~~
83
83
!!! error TS1259: Module '"variable"' can only be default-imported using the 'esModuleInterop' flag
84
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:14:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
84
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:14:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
85
85
import x3 from "interface-variable";
86
86
~~
87
87
!!! error TS1259: Module '"interface-variable"' can only be default-imported using the 'esModuleInterop' flag
88
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:26:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
88
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:26:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
89
89
import x4 from "module";
90
90
~~
91
91
!!! error TS1259: Module '"module"' can only be default-imported using the 'esModuleInterop' flag
92
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:34:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
92
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:34:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
93
93
import x5 from "interface-module";
94
94
~~
95
95
!!! error TS1259: Module '"interface-module"' can only be default-imported using the 'esModuleInterop' flag
96
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:46:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
96
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:46:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
97
97
import x6 from "variable-module";
98
98
~~
99
99
!!! error TS1259: Module '"variable-module"' can only be default-imported using the 'esModuleInterop' flag
100
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:60:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
100
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:60:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
101
101
import x7 from "function";
102
102
~~
103
103
!!! error TS1259: Module '"function"' can only be default-imported using the 'esModuleInterop' flag
104
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:65:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
104
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:65:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
105
105
import x8 from "function-module";
106
106
~~
107
107
!!! error TS1259: Module '"function-module"' can only be default-imported using the 'esModuleInterop' flag
108
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:74:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
108
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:74:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
109
109
import x9 from "class";
110
110
~~
111
111
!!! error TS1259: Module '"class"' can only be default-imported using the 'esModuleInterop' flag
112
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:82:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
112
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:82:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
113
113
import x0 from "class-module";
114
114
~~
115
115
!!! error TS1259: Module '"class-module"' can only be default-imported using the 'esModuleInterop' flag
116
-
!!! related TS2594 tests/cases/compiler/modules.d.ts:94:5: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
116
+
!!! related TS2594 tests/cases/compiler/modules.d.ts:94:5: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Copy file name to clipboardExpand all lines: tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,4 +9,4 @@ tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts(1,8): error TS1259: Modul
9
9
import defaultBinding from "./es6ImportDefaultBindingInEs5_0";
10
10
~~~~~~~~~~~~~~
11
11
!!! error TS1259: Module '"tests/cases/compiler/es6ImportDefaultBindingInEs5_0"' can only be default-imported using the 'esModuleInterop' flag
12
-
!!! related TS2594 tests/cases/compiler/es6ImportDefaultBindingInEs5_0.ts:2:1: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
12
+
!!! related TS2594 tests/cases/compiler/es6ImportDefaultBindingInEs5_0.ts:2:1: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Copy file name to clipboardExpand all lines: tests/baselines/reference/exportAssignmentWithoutAllowSyntheticDefaultImportsError.errors.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -12,4 +12,4 @@
12
12
import bar from './bar';
13
13
~~~
14
14
!!! error TS1259: Module '"/bar"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
15
-
!!! related TS2594 /bar.ts:1:1: This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.
15
+
!!! related TS2594 /bar.ts:1:1: This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.
Copy file name to clipboardExpand all lines: tests/baselines/reference/javascriptImportDefaultBadExport.errors.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -12,5 +12,5 @@
12
12
import a from "./a";
13
13
~
14
14
!!! error TS1259: Module '"/a"' can only be default-imported using the 'esModuleInterop' flag
15
-
!!! related TS2594 /a.js:5:1: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
15
+
!!! related TS2594 /a.js:5:1: This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Copy file name to clipboardExpand all lines: tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Output::
35
35
[96msettings.json[0m:[93m1[0m:[93m1[0m
36
36
[7m1[0m{"content":"Print this"}
37
37
[7m[0m[96m~[0m
38
-
Thismoduleisdeclaredwithusing'export=', and can only be used with a default import when using the 'esModuleInterop' flag.
0 commit comments