ipfs / js-ipns

Utilities for creating, parsing, and validating IPNS records

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package require does not work

MicrowaveDev opened this issue · comments

const ipns = require('ipns');

Throws an error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in .../node_modules/ipns/package.json

Even if I tried to require specific script:

const ipnsValidator = require('ipns/src/validator');

It does not work:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './src/validator' is not defined by "exports" in .../node_modules/ipns/package.json

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.