|
1 | 1 | tests/cases/compiler/main.ts(15,1): error TS2693: 'z1' only refers to a type, but is being used as a value here.
|
2 | 2 | tests/cases/compiler/main.ts(21,4): error TS2339: Property 'a' does not exist on type '() => any'.
|
3 | 3 | tests/cases/compiler/main.ts(23,4): error TS2339: Property 'a' does not exist on type 'typeof Foo'.
|
4 |
| -tests/cases/compiler/main.ts(27,8): error TS1192: Module '"interface"' has no default export. |
5 |
| -tests/cases/compiler/main.ts(28,8): error TS1192: Module '"variable"' has no default export. |
6 |
| -tests/cases/compiler/main.ts(29,8): error TS1192: Module '"interface-variable"' has no default export. |
7 |
| -tests/cases/compiler/main.ts(30,8): error TS1192: Module '"module"' has no default export. |
8 |
| -tests/cases/compiler/main.ts(31,8): error TS1192: Module '"interface-module"' has no default export. |
9 |
| -tests/cases/compiler/main.ts(32,8): error TS1192: Module '"variable-module"' has no default export. |
10 |
| -tests/cases/compiler/main.ts(33,8): error TS1192: Module '"function"' has no default export. |
11 |
| -tests/cases/compiler/main.ts(34,8): error TS1192: Module '"function-module"' has no default export. |
12 |
| -tests/cases/compiler/main.ts(35,8): error TS1192: Module '"class"' has no default export. |
13 |
| -tests/cases/compiler/main.ts(36,8): error TS1192: Module '"class-module"' has no default export. |
| 4 | +tests/cases/compiler/main.ts(27,8): error TS1259: Module '"interface"' can only be default-imported using the 'esModuleInterop' flag |
| 5 | +tests/cases/compiler/main.ts(28,8): error TS1259: Module '"variable"' can only be default-imported using the 'esModuleInterop' flag |
| 6 | +tests/cases/compiler/main.ts(29,8): error TS1259: Module '"interface-variable"' can only be default-imported using the 'esModuleInterop' flag |
| 7 | +tests/cases/compiler/main.ts(30,8): error TS1259: Module '"module"' can only be default-imported using the 'esModuleInterop' flag |
| 8 | +tests/cases/compiler/main.ts(31,8): error TS1259: Module '"interface-module"' can only be default-imported using the 'esModuleInterop' flag |
| 9 | +tests/cases/compiler/main.ts(32,8): error TS1259: Module '"variable-module"' can only be default-imported using the 'esModuleInterop' flag |
| 10 | +tests/cases/compiler/main.ts(33,8): error TS1259: Module '"function"' can only be default-imported using the 'esModuleInterop' flag |
| 11 | +tests/cases/compiler/main.ts(34,8): error TS1259: Module '"function-module"' can only be default-imported using the 'esModuleInterop' flag |
| 12 | +tests/cases/compiler/main.ts(35,8): error TS1259: Module '"class"' can only be default-imported using the 'esModuleInterop' flag |
| 13 | +tests/cases/compiler/main.ts(36,8): error TS1259: Module '"class-module"' can only be default-imported using the 'esModuleInterop' flag |
14 | 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 | 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 | 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.
|
@@ -76,34 +76,44 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
|
76 | 76 | // default import
|
77 | 77 | import x1 from "interface";
|
78 | 78 | ~~
|
79 |
| -!!! error TS1192: Module '"interface"' has no default export. |
| 79 | +!!! 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 | 81 | import x2 from "variable";
|
81 | 82 | ~~
|
82 |
| -!!! error TS1192: Module '"variable"' has no default export. |
| 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. |
83 | 85 | import x3 from "interface-variable";
|
84 | 86 | ~~
|
85 |
| -!!! error TS1192: Module '"interface-variable"' has no default export. |
| 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. |
86 | 89 | import x4 from "module";
|
87 | 90 | ~~
|
88 |
| -!!! error TS1192: Module '"module"' has no default export. |
| 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. |
89 | 93 | import x5 from "interface-module";
|
90 | 94 | ~~
|
91 |
| -!!! error TS1192: Module '"interface-module"' has no default export. |
| 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. |
92 | 97 | import x6 from "variable-module";
|
93 | 98 | ~~
|
94 |
| -!!! error TS1192: Module '"variable-module"' has no default export. |
| 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. |
95 | 101 | import x7 from "function";
|
96 | 102 | ~~
|
97 |
| -!!! error TS1192: Module '"function"' has no default export. |
| 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. |
98 | 105 | import x8 from "function-module";
|
99 | 106 | ~~
|
100 |
| -!!! error TS1192: Module '"function-module"' has no default export. |
| 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. |
101 | 109 | import x9 from "class";
|
102 | 110 | ~~
|
103 |
| -!!! error TS1192: Module '"class"' has no default export. |
| 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. |
104 | 113 | import x0 from "class-module";
|
105 | 114 | ~~
|
106 |
| -!!! error TS1192: Module '"class-module"' has no default export. |
| 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. |
107 | 117 |
|
108 | 118 | // namespace import
|
109 | 119 | import * as y1 from "interface";
|
|
0 commit comments