electron-fetch
dependency is not ESM compatible
#164
Labels
need/triage
Needs initial labeling and prioritization
electron-fetch
dependency is not ESM compatible
#164
This issue originated on the
js-ipfs
repo, where a bug was reported that the library wouldn't properly run with Vite, aselectron
somehow got required (ipfs/js-ipfs#4011 (comment)).After some diging, I found that
electron-fetch
is a dependency in this (js-ipfs-utils) library and that is a Node library, importing things likeurl
andhttp
, which are not usable in a browser.I think for the ESM build of this package,
electron-fetch
shouldn't be included at all, but I'm not too familiar with how the different builds (in combination with environments) work.The text was updated successfully, but these errors were encountered: