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
Description
Issues I've found (so far) that prevent js-ipfs from loading in the browser.
-
package.json
attributemain
pointing to a non-existing pathFixed in Fixed path for module importing #508
-
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
-
node-forge
library uses AMD modules which doesn't work withbrowserify
Most severe of the issues, more detail:
- browserifying forge digitalbazaar/forge#126
- In Browserify: "Cannot find module './aes'" digitalbazaar/forge#294
- Issue using with browserify - cannot find module './aes' theoephraim/node-google-spreadsheet#133.
Affected libraries:
- libp2p-crypto
- libp2p-identify
- libp2p-secio
Metadata
Metadata
Assignees
Labels
No labels