TS1192

error TS1192: Module ‘.../logdown‘ has no default export.

Broken Code ❌

1
2
3
4
5
declare class Logdown {
// ...
}

export = Logdown;

Fixed Code ✔️

1
2
3
4
5
declare class Logdown {
// ...
}

export default Logdown;

error TS1192: ‘export *’ does not re-export a default.

Broken Code ❌

1
2
export * from './parseUrls';
export * from './runWhenReady';

You have to re-export a default (in this case coming from runWhenReady.ts):

Fixed Code ✔️

1
2
3
export * from './parseUrls';
export * from './runWhenReady';
export { default as default } from './runWhenReady';