esm.sh
esm.sh copied to clipboard
Failed to import - ipfs-http-client
Failing module
- GitHub: https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-client
- npm: https://npm.im/ipfs-http-client
import { create } from 'https://esm.sh/ipfs-http-client'
Error message
After running deno run I get this:
Download https://cdn.esm.sh/v58/[email protected]/src/files/glob-source.js~.d.ts
Download https://cdn.esm.sh/v58/[email protected]/src/files/url-source.js~.d.ts
Download https://cdn.esm.sh/v58/[email protected]/bases/interface~.d.ts
Download https://cdn.esm.sh/v58/[email protected]/cid~.d.ts
Download https://cdn.esm.sh/v58/[email protected]/codecs/interface~.d.ts
Download https://cdn.esm.sh/v58/[email protected]/hashes/interface~.d.ts
Download https://cdn.esm.sh/error.js?type=unsupported-nodejs-builtin-module&name=worker_threads&importer=fetch-blob
Check a generated module
warning: Cannot load module "https://deno.land/[email protected]/node/crypto.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/nanoid.js:2:72
If the source module contains only types, use `import type` and `export type` to import it instead.
warning: Cannot load module "https://deno.land/[email protected]/node/stream.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/browserify-zlib.bundle.js:2:292
If the source module contains only types, use `import type` and `export type` to import it instead.
warning: Cannot load module "https://deno.land/[email protected]/node/events.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/stream-http.bundle.js:2:242
If the source module contains only types, use `import type` and `export type` to import it instead.
warning: Cannot load module "https://deno.land/[email protected]/node/string_decoder.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/stream-http.bundle.js:2:419
If the source module contains only types, use `import type` and `export type` to import it instead.
warning: Cannot load module "https://deno.land/[email protected]/node/net.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/node-fetch.js:3:12429
If the source module contains only types, use `import type` and `export type` to import it instead.
warning: Cannot load module "https://deno.land/[email protected]/node/path.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/from.js:2:1906
If the source module contains only types, use `import type` and `export type` to import it instead.
warning: Cannot load module "https://deno.land/[email protected]/node/fs.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/from.js:2:1838
If the source module contains only types, use `import type` and `export type` to import it instead.
warning: Cannot load module "https://deno.land/[email protected]/node/querystring.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/url.bundle.js:2:28
If the source module contains only types, use `import type` and `export type` to import it instead.
warning: Cannot load module "https://deno.land/[email protected]/node/assert.ts".
at https://cdn.esm.sh/v58/[email protected]/deno/browserify-zlib.bundle.js:2:164
If the source module contains only types, use `import type` and `export type` to import it instead.
error: Relative import path "http" not prefixed with / or ./ or ../ from "https://cdn.esm.sh/v58/@types/node/http.d.ts"
at https://cdn.esm.sh/v58/[email protected]/deno/from.js:2:1982
Additional info
- esm.sh version: v58
- Deno version: 1.16.2
@ije could you please worker_threads from deno std to make this module work?
The new error on v111 is:
Uncaught TypeError: __0$.bind is not a function
at https://esm.sh/v111/[email protected]/deno/src/http.js:2:1638
at https://esm.sh/v111/[email protected]/deno/src/http.js:2:1110
at https://esm.sh/v111/[email protected]/deno/src/http.js:2:4537