-
-
Notifications
You must be signed in to change notification settings - Fork 558
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
Examples Fail on pubsub #154
Comments
Hi @vijayee, we're currently in the middle of the next release of IPFS and the dependencies are a little wonky atm. Thanks for reporting the issue! You will be able to get the ipfs-api example working by using a fork of js-ipf-api by installing it with npm We're working on getting the js-ipfs version working again, I 'm fairly confident that will land next week. |
@haadcode, thanks, I'll give it a shot with this version of the api. |
I get another error with the '@haad/ipfs-api' module coming from stream-to-json-value
|
We just released a new version which includes fixes for the examples. See https://github.com/haadcode/orbit-db/tree/master/examples for all the examples. You can now do:
const IPFS = require('ipfs-daemon/src/ipfs-node-daemon')
const OrbitDB = require('orbit-db')
const ipfs = new IPFS()
ipfs.on('error', (e) => console.error(e))
ipfs.on('ready', (e) => {
const orbitdb = new OrbitDB(ipfs)
const db = orbitdb.eventlog("feed name")
db.add("hello world")
.then(() => {
const latest = db.iterator({ limit: 5 }).collect()
console.log(JSON.stringify(latest, null, 2))
})
}) @vijayee, thanks for waiting. If you encounter more problems, let us know! |
I've tried this both for js-ipfs example and the ipfs-api example. Is there something special I need to do to make this work like target a specific version of either? There does not appear to be a pubsub module on the ipfs object.
The text was updated successfully, but these errors were encountered: