I’m trying to store files in ipfs using js-ipfs for how Dapps works!
But when I run it with the code below, it doesn’t work and I’m in trouble
const ipfs = await IPFS.create();
const {cid} =await ipfs.add(‘推しメンは可愛い’);
console.info(cid.toString())
The error message that is coming back is as follows
“statusCode”:500,“error”:“Internal Server Error”,“message”:“multihash must be a Buffer”
I’m trying to implement in node.js using ipfs-core in my local environment
Can anyone give me some advice?