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.

Getting js-ipfs to load in browser #509

Closed
@nikuda

Description

@nikuda

Issues I've found (so far) that prevent js-ipfs from loading in the browser.

  1. package.json attribute main pointing to a non-existing path

    Fixed in Fixed path for module importing #508

  2. Use of fs.readFileSync with .proto files.

    Proposed solution No more fs.readFileSync and different hash functions js-ipfs-merkle-dag#50 would need to be applied to the following libraries:

    • ipfs-bitswap
    • ipfs-merkle-dag
    • ipfs-unixfs
    • libp2p-crypto
    • libp2p-identify
    • libp2p-secio
  3. node-forge library uses AMD modules which doesn't work with browserify

    Most severe of the issues, more detail:

    Affected libraries:

    • libp2p-crypto
    • libp2p-identify
    • libp2p-secio

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