Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Pubsub: Could not find a declaration file for module 'libp2p-pubsub' #114

Closed
wemeetagain opened this issue Nov 30, 2021 · 3 comments
Closed

Comments

@wemeetagain
Copy link
Member

Trying to update js-libp2p-gossipsub (tracking issue ChainSafe/js-libp2p-gossipsub#171)

After installing libp2p-pubsub v0.7.0 and libp2p-interfaces v2.0.0
and adding this line:

import { PubsubBaseProtocol } from 'libp2p-pubsub'

I get the following error in my IDE:

Could not find a declaration file for module 'libp2p-pubsub'. '/home/cayman/Code/js-libp2p-gossipsub/node_modules/libp2p-pubsub/dist/src/index.js' implicitly has an 'any' type.

Also tried starting a new project and installing just those two packages, same error.

@achingbrain
Copy link
Member

Could you try again please? There was a bit of churn and I think you got caught up in it.

[email protected] was the TypeScript refactor but it became necessary to release that as v3 since libp2p-crypto removed support for node 14 and below.

[email protected] then became [email protected] for the same reason.

libp2p-pubsub is not ready for use yet, it needs more of the ecosystem porting to TS - please stick with the PubSub base class defined in [email protected] for now.

Sorry for the disruption.

@wemeetagain
Copy link
Member Author

No worries, let me know if/when you want me to try porting gossipsub over to the new stuff.

@lidel
Copy link
Member

lidel commented Feb 4, 2022

Closing as @wemeetagain say its no longer a problem :^)

@lidel lidel closed this as completed Feb 4, 2022
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.

3 participants