holepunchto/hyperswarm-dht-relay

Not working with Yarn Berry (accessing undeclared dependencies)

Closed this issue · 0 comments

When using this library with Yarn v2 and v3.6.0, I get the following errors:

Error: @hyperswarm/dht-relay tried to access noise-handshake, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Error: @hyperswarm/dht-relay tried to access noise-curve-ed, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

The solution is adding these libraries as dependencies in package.json.