ipfs-repo level.js throws fallback error using create function at ipfs-core
- Version: ipfs version 0.11.0
- Platform: macOS
- Subsystem: ipfs-core
Severity: medium
Description:
in nodejs project (esm), I did as followings, (*(node version 16.3.1)
- npm install ipfs-core (*npm version 8.3.1)
- import * as IPFS from "ipfs-core"
- execute below code
- const ipfs = await IPFS.create();
- Here, I got error in console as below,
- /node_modules/ipfs-repo/esm/src/utils/level.js:27 throw new NotFountError();
in repo, level.js, function getWithFallback throws error due to findLevelJs(store) returns undefined.
There are no dependencies other than "ipfs-core", "ipfs-http-client", and "multiformats"
don't know what I was doing wrong. is there something I mixed up?
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.
Can you also include stdout and stderr logs? Just to check exactly where the error originated (on which line).
js-ipfs is being deprecated in favor of Helia. You can https://github.com/ipfs/js-ipfs/issues/4336 and read the migration guide.
Please feel to reopen with any comments by 2023-06-02. We will do a final pass on reopened issues afterward (see https://github.com/ipfs/js-ipfs/issues/4336).
This issue is most likely resolved in Helia, please try it out! There are some examples in ipfs-examples/helia-examples using levelDatastore IIRC.