-
Notifications
You must be signed in to change notification settings - Fork 439
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
Package path . is not exported from package /home/.../node_modules/libp2p #1776
Comments
Could you share your |
tsconfig:
|
libp2p is an ESM-only module, this configuration option uses the wrong module system - please change it to use ESM: {
"compilerOptions": {
"module": "ES2022",
"esModuleInterop": true,
"target": "ES2022",
"moduleResolution": "node"
}
} |
@achingbrain OK, can you specify that in getting started then? https://github.com/libp2p/js-libp2p/blob/master/doc/GETTING_STARTED.md |
Good suggestion I created a PR #1782 to address that. |
Related #1776 --------- Co-authored-by: Alex Potsides <[email protected]>
I cannot get to the hello world point with https://github.com/libp2p/js-libp2p/blob/master/doc/GETTING_STARTED.md.
This yields an error:
It set up package.json with:
My code is (typescript):
Commenting out the call to createLibp2p allows it to build, presumably because the tree shaker gets rid of the import.
The text was updated successfully, but these errors were encountered: