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

Failed to import - apache-arrow

Open domoritz opened this issue 2 years ago • 4 comments

Failing module

  • GitHub: https://github.com/apache/arrow/tree/master/js
  • npm: https://www.npmjs.com/package/apache-arrow
import * as arrow from 'https://esm.sh/apache-arrow'

Error message

After onload I got this:

GET https://cdn.esm.sh/v76/[email protected]/es2021/util/pretty.mjs.js net::ERR_ABORTED 500

I suspect the import should instead be https://cdn.esm.sh/v76/[email protected]/es2021/util/pretty.js

Additional info

  • esm.sh version: 76
  • Browser version: Chrome 100

domoritz avatar Apr 04 '22 23:04 domoritz

I can confirm that this happens for version 8.0.0 as well.

error: Import 'https://esm.sh/v85/[email protected]/deno/type.mjs.js' failed: 500 Internal Server Error
    at https://esm.sh/v85/[email protected]/deno/builder/union.js:2:314

teodorkostov avatar Jun 06 '22 09:06 teodorkostov

JSdelivr works well for me. You can import from https://cdn.jsdelivr.net/npm/apache-arrow@8/+esm.

domoritz avatar Jun 11 '22 16:06 domoritz

@domoritz The jsdelivr.net does not properly provide the TypeScript types for Deno. However, I am playing with bundling my application and got an interesting error when using the dependency from esm.sh:

error: Relative import path "events" not prefixed with / or ./ or ../

It might be useful to fix a potential issue in Arrow.

teodorkostov avatar Jun 14 '22 08:06 teodorkostov

@teodorkostov I'm happy to fix this but I don't see where this issue is happening. Do you see the relevant code in https://github.com/apache/arrow/tree/master/js?

domoritz avatar Jun 23 '22 02:06 domoritz