Closed christroutner closed 11 months ago
Can you paste the output of:
$ npm ls @multiformats/multiaddr-matcher
It should be the latest version - 1.1.0
. If it's not, please delete any lockfiles you have and install again.
Here is the output I got. helia-coord
is my library. libp2p is a peer-dependency for that library.
trout@pop-os:~/work/psf/code/ipfs-p2wdb-service$ npm ls @multiformats/multiaddr-matcher
ipfs-p2wdb-service@4.0.0 /home/trout/work/psf/code/ipfs-p2wdb-service
├─┬ @libp2p/tcp@8.0.9
│ └─┬ @libp2p/utils@4.0.6
│ └── @multiformats/multiaddr-matcher@1.0.2 deduped
├─┬ helia-coord@1.2.2 -> ./../helia-coord
│ └─┬ libp2p@0.46.16
│ ├─┬ @libp2p/utils@4.0.5
│ │ └── @multiformats/multiaddr-matcher@1.0.2 deduped
│ └── @multiformats/multiaddr-matcher@1.0.2
├─┬ helia@2.1.0
│ ├─┬ @libp2p/webrtc@3.2.5
│ │ └── @multiformats/multiaddr-matcher@1.0.2 deduped
│ └─┬ @libp2p/webtransport@3.1.5
│ └── @multiformats/multiaddr-matcher@1.0.2 deduped
└─┬ libp2p@0.46.19
└── @multiformats/multiaddr-matcher@1.0.2
Does helia-coord
ship with a lockfile? It might be preventing npm taking the latest version that satisfies ^1.0.0
.
Deleting the package-lock.json
file fixed the issue! Thank you!
Version: 0.46.19
Platform: Linux pop-os 6.0.12-76060006-generic #202212290932~1671652965~22.04~452ea9d SMP PREEMPT_DYNAMIC Wed D x86_64 x86_64 x86_64 GNU/Linux
Subsystem: Using with Helia v2.1.0
Severity:
Critical - application crashes
Description:
Switching from js-ipfs v0.46.16 to 0.46.19, my application crashes on startup with the error below. It looks to me like a constant moved from a dev version to the master version of the software?
Steps to reproduce the error: