Closed kailash360 closed 2 years ago
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:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
I can confirm this problem on MacOS too. Downgrading to 0.15.2 doesn't seem to help either. I assume the problem is inside libp2p/js-libp2p-crypto/keys and found something possibly related: https://github.com/libp2p/js-libp2p-crypto/issues/256 I am going to fork this and give it a try!
This strategy was unfortunately not successful. My problem disappeared when
yarn create react-app my-blog
yarn add ipfs-core util
<-- is that the same package you added?
import useIpfsFactory from './hooks/use-ipfs-factory.js'
function App() {
const { ipfs, ipfsInitError } = useIpfsFactory({ commands: ['id'] }) return (
After yarn start - ipfs starts nicely as you I can see in the browser console.
Which version of React you are using and do you have any other modules in your packages .json then the standard ones coming after creating the React project?
I was using
- React version 17 and
- react-scripts version 4.0.3
in order to eliminate a "process not found" problem when I ran into your error message after playing around with the latest orbit-db package.
I encountered the same situation
Facing Same issue.. Can't resolve '@libp2p/crypto/keys'
Please can we have a reproduction to reproduce the problem?
Importing the entire ipfs
library fixed this for me:
npm i ipfs
Note: this will also install the CLI and HTTP server modules.
I tried reproducing this problem as described above one more time with ipfs@0.15.4 (instead of 0.15.2) and this problem seems resolved imho! (I don't know about the others having the same issue with different approaches)
I also facing same issue,I have tried many ways
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.
I had a look at @libp2p/crypto
dependency:
https://github.com/ipfs/js-ipfs/blob/7a7e091c5d7110542ca7ab6eca1c0c9abb19e54b/packages/ipfs-core/package.json#L75
Since we use a caret range (^
) for this dependency making the exact dependency installed by users non-deterministic, I suspect that there may be changes since @libp2p/crypto@0.22.9
that might have affected the use of the package in storage.js
:
To those experiencing this issue, could you please run the following command: npm ls @libp2p/crypto
and share which version of the dependency you have?
@2color, here you go:
➜ npm ls @libp2p/crypto
zodiac-app...
└─┬ ipfs-core@0.15.4
├─┬ @chainsafe/libp2p-noise@6.2.0
│ └── @libp2p/crypto@0.22.14 deduped
├── @libp2p/crypto@0.22.14
├─┬ @libp2p/kad-dht@1.0.16
│ └── @libp2p/crypto@0.22.14 deduped
├─┬ @libp2p/peer-id-factory@1.0.18
│ └── @libp2p/crypto@1.0.3
├─┬ ipfs-core-config@0.4.1
│ └─┬ @chainsafe/libp2p-gossipsub@1.2.0
│ ├── @libp2p/crypto@0.22.14 deduped
│ └─┬ @libp2p/pubsub@1.3.0
│ └── @libp2p/crypto@0.22.14 deduped
├─┬ ipns@1.0.2
│ └── @libp2p/crypto@0.22.14 deduped
└─┬ libp2p@0.37.3
├── @libp2p/crypto@0.22.14 deduped
└─┬ @libp2p/peer-record@1.0.12
└── @libp2p/crypto@0.22.14 deduped
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.
This issue was closed because it is missing author input.
Reopening since input was provided (just not by the original author).
Does that help with debugging @2color ?
Couldn't find any changes that may have caused this in the hotfix range and version provided by @manboy-eth.
Without a full reproduction, it's really hard determining the root cause here.
I still have the same issue with libp2p/logger and with ipfs-http-client. It always looks like that:
those are the installed packages
Even when installing the logger globally it wont find it in the npmpackages anymore.
The weird thing about that is, that it does not work on my windows and neither on my linux machine, but it works on my colleagues Mac computer. Node is on v18.10.0 npm -v 8.19.2
Version: 0.15.4
Platform: Windows (64 bit)
Subsystem: libp2p
Severity: Critical
Description:
On adding the package to my ReactJS application, the entire project breaks with the following error
Steps to reproduce the error: