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: tests/baselines/reference/es6ExportEqualsInterop.errors.txt
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -11,24 +11,24 @@ tests/cases/compiler/main.ts(33,8): error TS1192: Module '"function"' has no def
11
11
tests/cases/compiler/main.ts(34,8): error TS1192: Module '"function-module"' has no default export.
12
12
tests/cases/compiler/main.ts(35,8): error TS1192: Module '"class"' has no default export.
13
13
tests/cases/compiler/main.ts(36,8): error TS1192: Module '"class-module"' has no default export.
14
-
tests/cases/compiler/main.ts(39,21): error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
15
-
tests/cases/compiler/main.ts(45,21): error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
16
-
tests/cases/compiler/main.ts(47,21): error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
14
+
tests/cases/compiler/main.ts(39,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
15
+
tests/cases/compiler/main.ts(45,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
16
+
tests/cases/compiler/main.ts(47,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
17
17
tests/cases/compiler/main.ts(50,1): error TS2693: 'y1' only refers to a type, but is being used as a value here.
18
18
tests/cases/compiler/main.ts(56,4): error TS2339: Property 'a' does not exist on type '() => any'.
19
19
tests/cases/compiler/main.ts(58,4): error TS2339: Property 'a' does not exist on type 'typeof Foo'.
20
20
tests/cases/compiler/main.ts(62,10): error TS2305: Module '"interface"' has no exported member 'a'.
21
-
tests/cases/compiler/main.ts(62,25): error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
21
+
tests/cases/compiler/main.ts(62,25): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
22
22
tests/cases/compiler/main.ts(68,10): error TS2305: Module '"function"' has no exported member 'a'.
23
-
tests/cases/compiler/main.ts(68,25): error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
23
+
tests/cases/compiler/main.ts(68,25): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
24
24
tests/cases/compiler/main.ts(70,10): error TS2305: Module '"class"' has no exported member 'a'.
25
-
tests/cases/compiler/main.ts(70,25): error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
25
+
tests/cases/compiler/main.ts(70,25): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
26
26
tests/cases/compiler/main.ts(85,10): error TS2305: Module '"interface"' has no exported member 'a'.
27
-
tests/cases/compiler/main.ts(85,25): error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
27
+
tests/cases/compiler/main.ts(85,25): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
28
28
tests/cases/compiler/main.ts(91,10): error TS2305: Module '"function"' has no exported member 'a'.
29
-
tests/cases/compiler/main.ts(91,25): error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
29
+
tests/cases/compiler/main.ts(91,25): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
30
30
tests/cases/compiler/main.ts(93,10): error TS2305: Module '"class"' has no exported member 'a'.
31
-
tests/cases/compiler/main.ts(93,25): error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
31
+
tests/cases/compiler/main.ts(93,25): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
32
32
tests/cases/compiler/main.ts(97,15): error TS2498: Module '"interface"' uses 'export =' and cannot be used with 'export *'.
33
33
tests/cases/compiler/main.ts(98,15): error TS2498: Module '"variable"' uses 'export =' and cannot be used with 'export *'.
34
34
tests/cases/compiler/main.ts(99,15): error TS2498: Module '"interface-variable"' uses 'export =' and cannot be used with 'export *'.
!!! error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
111
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
112
112
import * as y2 from "variable";
113
113
import * as y3 from "interface-variable";
114
114
import * as y4 from "module";
115
115
import * as y5 from "interface-module";
116
116
import * as y6 from "variable-module";
117
117
import * as y7 from "function";
118
118
~~~~~~~~~~
119
-
!!! error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
119
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
120
120
import * as y8 from "function-module";
121
121
import * as y9 from "class";
122
122
~~~~~~~
123
-
!!! error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
123
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
!!! error TS2305: Module '"interface"' has no exported member 'a'.
147
147
~~~~~~~~~~~
148
-
!!! error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
148
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
!!! error TS2305: Module '"function"' has no exported member 'a'.
157
157
~~~~~~~~~~
158
-
!!! error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
158
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
159
159
import { a as a8 } from "function-module";
160
160
import { a as a9 } from "class";
161
161
~
162
162
!!! error TS2305: Module '"class"' has no exported member 'a'.
163
163
~~~~~~~
164
-
!!! error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
164
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
!!! error TS2305: Module '"interface"' has no exported member 'a'.
182
182
~~~~~~~~~~~
183
-
!!! error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
183
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
!!! error TS2305: Module '"function"' has no exported member 'a'.
192
192
~~~~~~~~~~
193
-
!!! error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
193
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
194
194
export { a as a8 } from "function-module";
195
195
export { a as a9 } from "class";
196
196
~
197
197
!!! error TS2305: Module '"class"' has no exported member 'a'.
198
198
~~~~~~~
199
-
!!! error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
199
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
tests/cases/compiler/main.ts(1,20): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
2
+
3
+
4
+
==== tests/cases/compiler/a.ts (0 errors) ====
5
+
class a { }
6
+
export = a;
7
+
8
+
==== tests/cases/compiler/main.ts (1 errors) ====
9
+
import * as a from "./a";
10
+
~~~~~
11
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
tests/cases/compiler/a.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
2
+
tests/cases/compiler/main.ts(1,20): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
3
+
4
+
5
+
==== tests/cases/compiler/a.ts (1 errors) ====
6
+
class a { }
7
+
export = a;
8
+
~~~~~~~~~~~
9
+
!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
10
+
11
+
==== tests/cases/compiler/main.ts (1 errors) ====
12
+
import * as a from "./a";
13
+
~~~~~
14
+
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
0 commit comments