ipfsClient is not a function

Hello all,

Why when I run the node app.js it gives me this error:

const ipfs = new ipfsClient({ host: ‘localhost’, port:‘5001’, protocol:‘http’});
TypeError: ipfsClient is not a function.

Please you’re helping is highly appreciated.
Thanks in advance

It’s

const ipfs = ipfsClient.Create({/* ... options ... */})

Not just ipfsClient.

1 Like

Yes, it works now, but I wonder why all the videos that I have seen, they only wrote without (create).
Thanks a lot