|
| 1 | +tests/cases/compiler/exportDefaultDuplicateCrash.ts(3,1): error TS2323: Cannot redeclare exported variable 'default'. |
| 2 | +tests/cases/compiler/exportDefaultDuplicateCrash.ts(3,1): error TS2528: A module cannot have multiple default exports. |
| 3 | +tests/cases/compiler/exportDefaultDuplicateCrash.ts(4,10): error TS2323: Cannot redeclare exported variable 'default'. |
| 4 | +tests/cases/compiler/exportDefaultDuplicateCrash.ts(4,10): error TS2528: A module cannot have multiple default exports. |
| 5 | +tests/cases/compiler/exportDefaultDuplicateCrash.ts(4,25): error TS2307: Cannot find module './hi' or its corresponding type declarations. |
| 6 | +tests/cases/compiler/exportDefaultDuplicateCrash.ts(5,16): error TS2528: A module cannot have multiple default exports. |
| 7 | +tests/cases/compiler/exportDefaultDuplicateCrash.ts(5,31): error TS2307: Cannot find module './hi' or its corresponding type declarations. |
| 8 | + |
| 9 | + |
| 10 | +==== tests/cases/compiler/exportDefaultDuplicateCrash.ts (7 errors) ==== |
| 11 | + // #38214 |
| 12 | + |
| 13 | + export default function () { } |
| 14 | + ~~~~~~ |
| 15 | +!!! error TS2323: Cannot redeclare exported variable 'default'. |
| 16 | + ~~~~~~ |
| 17 | +!!! error TS2528: A module cannot have multiple default exports. |
| 18 | +!!! related TS2753 tests/cases/compiler/exportDefaultDuplicateCrash.ts:5:16: Another export default is here. |
| 19 | + export { default } from './hi' |
| 20 | + ~~~~~~~ |
| 21 | +!!! error TS2323: Cannot redeclare exported variable 'default'. |
| 22 | + ~~~~~~~ |
| 23 | +!!! error TS2528: A module cannot have multiple default exports. |
| 24 | +!!! related TS6204 tests/cases/compiler/exportDefaultDuplicateCrash.ts:5:16: and here. |
| 25 | + ~~~~~~ |
| 26 | +!!! error TS2307: Cannot find module './hi' or its corresponding type declarations. |
| 27 | + export { aa as default } from './hi' |
| 28 | + ~~~~~~~ |
| 29 | +!!! error TS2528: A module cannot have multiple default exports. |
| 30 | +!!! related TS2752 tests/cases/compiler/exportDefaultDuplicateCrash.ts:3:1: The first export default is here. |
| 31 | +!!! related TS2752 tests/cases/compiler/exportDefaultDuplicateCrash.ts:4:10: The first export default is here. |
| 32 | + ~~~~~~ |
| 33 | +!!! error TS2307: Cannot find module './hi' or its corresponding type declarations. |
| 34 | + |
0 commit comments