Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

TypeError: Object(...) is not a function for create method #4199

@shubham-2702

Description

@shubham-2702

I have set up ipfs on my windows 64 bit system, and i have the ipfs daemon running in the terminal, and the API server listening on /ip4/127.0.0.1/tcp/5001
Screenshot (61)

Now i am trying the example at
https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-client#example
But that results in the following error

const ipfs = create() TypeError: create is not a function at Object. C:/Users/shubh/Downloads/Agriculture-Supply-Chain-Management/Delivery/src/components/ipfs.js:2

Also, with await keyword before ipfs.add , it's not compiling but that's written in the example.
I am using node version 16.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions