esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Failed to import - `box-node-sdk`

Open roseMix opened this issue 4 years ago • 2 comments

Failing module

  • GitHub: https://github.com/box/box-node-sdk
  • npm: https://www.npmjs.com/package/box-node-sdk
 import BoxSDK from 'https://esm.sh/box-node-sdk'

Error message

After running deno run I get this:

Uncaught TypeError: Import 'https://cdn.esm.sh/error.js?type=unsupported-nodejs-builtin-module&name=dns&importer=socks-proxy-agent' failed: 500 Internal Server Error
    at https://cdn.esm.sh/v54/[email protected]/deno/socks-proxy-agent.js:2:264
    at async <anonymous>:2:30

Additional info

  • esm.sh version: v47
  • Deno version: 1.13.0

roseMix avatar Oct 25 '21 16:10 roseMix

having this on v55 now:

Uncaught TypeError: Object prototype may only be an Object or null: undefined
    at Function.setPrototypeOf (<anonymous>:null:null)
    at https://cdn.esm.sh/v55/[email protected]/deno/graceful-fs.js:2:2879
    at ve (https://cdn.esm.sh/v55/[email protected]/deno/graceful-fs.js:2:2901)
    at B (https://cdn.esm.sh/v55/[email protected]/deno/graceful-fs.js:3:655)
    at https://cdn.esm.sh/v55/[email protected]/deno/graceful-fs.js:3:540
    at https://cdn.esm.sh/v55/[email protected]/deno/graceful-fs.js:2:823
    at https://cdn.esm.sh/v55/[email protected]/deno/graceful-fs.js:3:4405

v1rtl avatar Oct 31 '21 07:10 v1rtl

still on v57

this seems to be causing the error:

 if (Object.setPrototypeOf)
          Object.setPrototypeOf(read, fs$read);
        return read;

v1rtl avatar Nov 11 '21 16:11 v1rtl