I’ve done a fresh install of helia, I’m on typescript 4.9.5 and node 21.4.0. When trying to compile my project I’m getting the following error.
Error: node_modules/ipfs-bitswap/dist/src/utils/sorted-map.d.ts:24:5 - error TS2416: Property ‘forEach’ in type ‘SortedMap<Key, Value>’ is not assignable to the same property in base type ‘Map<Key, Value>’.
Type ‘(cb: (entry: [Key, Value]) => void, thisArg?: SortedMap<Key, Value> | undefined) => void’ is not assignable to type ‘(callbackfn: (value: Value, key: Key, map: Map<Key, Value>) => void, thisArg?: any) => void’.
Types of parameters ‘cb’ and ‘callbackfn’ are incompatible.
Has anyone else had trouble getting helia to compile in ts?