-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example codes do not work #1820
Comments
After creating project with latest version of libp2p, it gives me following error :
|
dht from the example should be moved to
|
There are a few different issues here.
This is because you need to build the monorepo first. $ git clone https://....
$ cd libp2p
$ npm i && npm run build
$ cd example/foo
$ node 1.js
Please see discussion in #1583 but the TLDR is that ts-node doesn't support ESM yet.
No, the KAD-DHT implementation should be in the services map, though it's unrelated to the above issues.. |
Thanks. |
Severity: High
Description:
What you did :
i executed one of the example codes with
node 1.js
commandWhat happened :
it failed with following error :
Cannot find module ..../llibp2p/dist/src/index.js improted from ..../js-libp2p/examples/peer-and-content-routing/1.js
run successfully
The text was updated successfully, but these errors were encountered: