Skip to content
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
@milahu

Description

@milahu

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions