I create an angular4 project, and install ipfs like this:
npm install ipfs --save
I import ipfs in the code:
import IPFS from 'ipfs'
still now, the page seems ok, after i create a button for create ipfs instance:
let ipfs = new IPFS()
the browser console log throw exception:
Uncaught ReferenceError: createUtil is not defined
at eval (createUtil.js:4)
at Object…/…/…/…/ipld-ethereum/util/createUtil.js (vendor.bundle.js:2420)
at webpack_require (inline.bundle.js:55)
at eval (createResolver.js:4)
at Object…/…/…/…/ipld-ethereum/util/createResolver.js (vendor.bundle.js:2405)
at webpack_require (inline.bundle.js:55)
at Object.eval (index.js:3)
at eval (index.js:70)
at Object…/…/…/…/ipld-ethereum/eth-account-snapshot/index.js (vendor.bundle.js:2318)
at webpack_require (inline.bundle.js:55)
so, hwo to use js-ipfs in angular4