This repository was archived by the owner on Jun 30, 2023. It is now read-only.
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
TypeError: IPFS is not a constructor #7
Open
Description
expected: same api as js-ipfs
import * as IPFS from 'ipfs-http-client-lite';
//const ipfs = new IPFS({ /* options */ }); // TypeError: IPFS is not a constructor
//const ipfs = await IPFS.create({ /* options */ }); // TypeError: IPFS.create is not a function
const ipfs = IPFS({ /* options */ });
import * as IPFS from 'ipfs';
//import * as IPFS from 'ipfs-core';
const ipfs = await IPFS.create({ /* options */ });
edit: use new api of IPFS.create
Metadata
Metadata
Assignees
Labels
No labels