We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When importing noise from the package
const { noise } = require("@chainsafe/libp2p-noise");
It says
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined
The text was updated successfully, but these errors were encountered:
This is a ESM only package, that means you need to use import and not require.
import
require
Further reading: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
Sorry, something went wrong.
No branches or pull requests
When importing noise from the package
It says
The text was updated successfully, but these errors were encountered: