ChainSafe / js-libp2p-gossipsub

TypeScript implementation of Gossipsub
Apache License 2.0
152 stars 43 forks source link

CI is broken #338

Closed twoeths closed 2 years ago

twoeths commented 2 years ago

Description Got this error in https://github.com/ChainSafe/js-libp2p-gossipsub/actions/runs/3095619454/jobs/5024578133

[02:01:55] tsc [started]
Error: src/index.ts(511,68): error TS2345: Argument of type 'import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@multiformats/multiaddr/dist/src/index").Multiaddr[]' is not assignable to parameter of type 'import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@libp2p/interface-connection/node_modules/@multiformats/multiaddr/dist/src/index").Multiaddr[]'.
  Type 'import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@multiformats/multiaddr/dist/src/index").Multiaddr' is not assignable to type 'import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@libp2p/interface-connection/node_modules/@multiformats/multiaddr/dist/src/index").Multiaddr'.
    Types of property 'encapsulate' are incompatible.
      Type '(addr: import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@multiformats/multiaddr/dist/src/index").MultiaddrInput) => import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@multiformats/multiaddr/dist/src/index").Multiaddr' is not assignable to type '(addr: import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@libp2p/interface-connection/node_modules/@multiformats/multiaddr/dist/src/index").MultiaddrInput) => import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@libp2p/interface-connection/node_modules/@multifo...'.
        Types of parameters 'addr' and 'addr' are incompatible.
          Type 'import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@libp2p/interface-connection/node_modules/@multiformats/multiaddr/dist/src/index").MultiaddrInput' is not assignable to type 'import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@multiformats/multiaddr/dist/src/index").MultiaddrInput'.
            Type 'Multiaddr' is not assignable to type 'MultiaddrInput'.
              Property '[inspect]' is missing in type 'import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@libp2p/interface-connection/node_modules/@multiformats/multiaddr/dist/src/index").Multiaddr' but required in type 'import("/home/runner/work/js-libp2p-gossipsub/js-libp2p-gossipsub/node_modules/@multiformats/multiaddr/dist/src/index").Multiaddr'.
Error: test/utils/events.ts(64,25): error TS[23](https://github.com/ChainSafe/js-libp2p-gossipsub/actions/runs/3095619454/jobs/5024578133#step:4:24)44: Type 'Events' does not satisfy the constraint '{ [s: string]: any; }'.
twoeths commented 2 years ago

issue was fixed and CI was back