ipfs-vite-svelte-kit icon indicating copy to clipboard operation
ipfs-vite-svelte-kit copied to clipboard

fix esbuild external: node, util, net

Open milahu opened this issue 3 years ago • 0 comments

i had to use

esbuild --external:node:* --external:net --external:util

to build src/modules/ipfs-core/ipfs-core.js

otherwise esbuild would say

✘ [ERROR] Could not resolve "util"
✘ [ERROR] Could not resolve "node:http"
✘ [ERROR] Could not resolve "node:https"
✘ [ERROR] Could not resolve "node:zlib"
✘ [ERROR] Could not resolve "node:stream"
✘ [ERROR] Could not resolve "net"

milahu avatar Jan 03 '22 13:01 milahu