-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
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
Package subpath './peer-job-queue' is not defined by "exports" for circuit-relay #2243
Comments
Sorry about this 😓 this will be fixed once @libp2p/circuit-relay-v2 v5.0.0 is released. We have some breaking changes which included moving circuit-relay to it's own module and these packages will be published soon. Our docs do need to be updated, we have a issues related to that under good first issues if you're interested 😉 We also do have an issue to create some libp2p defaults as well |
It should exist within const { circuitRelayTransport, circuitRelayServer } = await import('libp2p/circuit-relay')
const { tcp } = await import('@libp2p/tcp')
const { webRTC, webRTCDirect } = await import('@libp2p/webrtc')
const { webSockets } = await import('@libp2p/websockets')
const { mdns } = await import('@libp2p/mdns')
const { noise } = await import('@chainsafe/libp2p-noise')
const { yamux } = await import('@chainsafe/libp2p-yamux')
const { identifyService } = await import('libp2p/identify')
const { autoNATService } = await import('libp2p/autonat')
const { uPnPNATService } = await import('libp2p/upnp-nat')
const { dcutrService } = await import('libp2p/dcutr')
const { kadDHT } = await import('@libp2p/kad-dht')
const { pingService } = await import('libp2p/ping')
const { gossipsub } = await import('@chainsafe/libp2p-gossipsub') // https://github.com/ChainSafe/js-libp2p-gossipsub
const IPFS = await import('ipfs-core')
//const { createOrbitDB, IPFSAccessController } = await import('@orbitdb/core')
const { createLibp2p } = await import('libp2p')
//const datastore = new MemoryDatastore()
//const blockstore = new MemoryBlockstore()
const libp2p = await createLibp2p({
//datastore,
addresses: {
listen: ['/ip4/0.0.0.0/tcp/0', '/ip6/::/tcp/0', '/webrtc'],
swarm: ['/ip4/127.0.0.1/tcp/9090/ws']
},
transports: [
circuitRelayTransport({
discoverRelays: 1
}),
tcp(),
webRTC(),
webRTCDirect(),
webSockets()
],
peerDiscovery: [mdns()],
connectionEncryption: [noise()],
streamMuxers: [yamux()],
services: {
identify: identifyService(),
autoNAT: autoNATService(),
upnpNAT: uPnPNATService(),
dcutr: dcutrService(),
circuitRelay: circuitRelayServer({
advertise: true
}),
dht: kadDHT(),
ping: pingService(),
pubsub: gossipsub()
}
}) |
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. |
I'm in the dark here, you could use some work on your git docs!
I found defaults https://github.com/ipfs/helia/blob/main/packages/helia/src/utils/libp2p-defaults.ts for libp2p cause I could not find it here.
used https://www.npmjs.com/package/@libp2p/circuit-relay-v2 because 'libp2p/circuit-relay' doesn't exist
got this error
The npm package put this main repo as where to report bugs, and they look like part of your team, so if you get mad at me for posting this here go ask why they did that in the first place.
Version:
the latest
Platform:
inux benz-iMac 5.15.0-88-generic 98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Subsystem:
libp2p
Severity:
boom
Description:
loaded libp2p
Steps to reproduce the error:
The text was updated successfully, but these errors were encountered: