-
Notifications
You must be signed in to change notification settings - Fork 62
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
TypeError: this.api.start is not a function when type is 'proc' #466
Comments
can you please give more context on this issue, format your code better and review the options you are passing they seems off. |
If you pass https://github.com/ipfs/js-ipfsd-ctl#disposable-vs-non-disposable-nodes As a separate issue the |
It works for me like this, though I think there is an API regression here in that the const { createController } = require('ipfsd-ctl');
(async () => {
let ipfsd = await createController({
type: 'proc',
ipfsModule: require('ipfs'),
ipfsOptions: {
init: true,
EXPERIMENTAL: {
pubsub: true,
ipnsPubsub: true,
sharding: true,
dht: true,
},
relay: {
enabled: true,
hop: {
enabled: true
}
},
},
disposable: false
});
await ipfsd.start();
let ipfs = ipfsd.api;
console.log(await ipfs.id())
})(); |
The text was updated successfully, but these errors were encountered: