ipfs-inactive / js-ipfs-unixfs-importer

[ARCHIVED] JavaScript implementation of the UnixFs importer used by IPFS
MIT License
5 stars 4 forks source link

Rabin chunker not working in the browser #34

Closed alanshaw closed 5 years ago

alanshaw commented 5 years ago
Uncaught (in promise) TypeError: this.asModule.newArray is not a function
    at Rabin.fingerprint (rabin.js:32)
    at rabin.js:60
    at async rabinChunker (rabin.js:39)
    at async buildFile (index.js:22)
    at async batch (index.js:6)
    at async reduceToParents (balanced.js:12)
    at async balanced (balanced.js:6)
    at async toArray (index.js:6)
    at async fileBuilder (index.js:135)
    at async dagBuilder (index.js:36)

Reproduce it here: https://github.com/ipfs-shipyard/ipfs-dag-builder-vis/pull/17

Clone, npm i, npm start, open http://localhost:1234, select "Rabin" chunking and then drop a file.

hugomrdias commented 5 years ago

fixed in https://github.com/hugomrdias/rabin-wasm/releases/tag/v0.0.5