esm.sh
esm.sh copied to clipboard
Failed to import - apache-arrow
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
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
JSdelivr works well for me. You can import from https://cdn.jsdelivr.net/npm/apache-arrow@8/+esm.
@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 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?