Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Lodestar build broken due to export = _exports #149

Closed
dapplion opened this issue Sep 2, 2021 · 0 comments · Fixed by #150
Closed

Lodestar build broken due to export = _exports #149

dapplion opened this issue Sep 2, 2021 · 0 comments · Fixed by #150

Comments

@dapplion
Copy link
Contributor

dapplion commented Sep 2, 2021

Built index.d.ts file break a Typescript build with

node_modules/libp2p-tcp/dist/src/index.d.ts:2:1 - error TS2309: An export assignment cannot be used in a module with other exported elements.
2 export = _exports;
  ~~~~~~~~~~~~~~~~~~
Found 1 error.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Link to a CI run with error above https://github.com/ChainSafe/lodestar/pull/3059/checks?check_run_id=3494564063#step:5:52

The file index.d.ts is:

lodestar$ cat node_modules/libp2p-tcp/dist/src/index.d.ts
declare const _exports: any;
export = _exports;
export type Multiaddr = import('multiaddr').Multiaddr;
export type Connection = import("libp2p-interfaces/src/connection/connection");
export type Upgrader = import('libp2p-interfaces/src/transport/types').Upgrader;
export type Listener = import('libp2p-interfaces/src/transport/types').Listener;
export type Socket = import('net').Socket;
//# sourceMappingURL=index.d.ts.map

Blocks ChainSafe/lodestar#3059

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant