esm-dev / esm.sh

The no-build CDN for modern web development.
https://esm.sh
MIT License
3.15k stars 151 forks source link

Failed to import - @swc/core #514

Open AsPulse opened 1 year ago

AsPulse commented 1 year ago

Failing module

import { transform } from 'https://esm.sh/@swc/core@1.3.32';

Error message

After running deno run I got this:

Uncaught TypeError: Import 'https://esm.sh/@swc/core@1.3.32' failed: 500 Internal Server Error
    at async <anonymous>:2:24

Go directly to this URL and I got this:

/* esm.sh - error */
throw new Error("[esm.sh] " + "npm: package '@swc/core-darwin-universal' not found");
export default null;

Additional info

note

I found this problem while trying to import @remotion/cli which depends on @swc/core. But I reported like this because it is reproduced with @swc/core alone.

AsPulse commented 1 year ago

Error was changed by above update:

Uncaught TypeError: Import 'https://esm.sh/v106/@swc/core-android-arm-eabi@1.3.11/deno/core-android-arm-eabi.js' failed: 500 Internal Server Error

Go https://esm.sh/v106/@swc/core-android-arm-eabi@1.3.11/deno/core-android-arm-eabi.js and I get:

/* esm.sh - error */
throw new Error("[esm.sh] " + "esbuild: No loader is configured for \".node\" files: esm-build-8fabc018d416145e9caa9ba7ef60fea162ab40b7-ac73ed70/node_modules/@swc/core-android-arm-eabi/swc.android-arm-eabi.node");
export default null;
ije commented 1 year ago

You should probably use the wasm version, since the server can handle the .node dependency for now