Skip to content

Creating a client instance gives "TypeError: mergeOptions__default.default.bind is not a function"  #471

@jjranalli

Description

@jjranalli

I have encountered this error in my Nextjs app while creating a client instance of Web3Storage, using the constructor specified in the docs.

import { Web3Storage } from 'web3.storage'

const client = new Web3Storage({ token: apiToken })

(Next v11.1.0, Node v14.16.1)

The following issue might be related ipfs/js-ipfs#3838 however reinstalling dependencies as suggested by the author of the issue doesn't fix it in my case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions