esm.sh
esm.sh copied to clipboard
Failed to import - @swc/core
Failing module
- GitHub: https://github.com/swc-project/swc
- npm: https://www.npmjs.com/package/@swc/core
import { transform } from 'https://esm.sh/@swc/[email protected]';
Error message
After running deno run I got this:
Uncaught TypeError: Import 'https://esm.sh/@swc/[email protected]' 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
- esm.sh version: v106
- Deno version: 1.30.2 (Windows)
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.
Error was changed by above update:
Uncaught TypeError: Import 'https://esm.sh/v106/@swc/[email protected]/deno/core-android-arm-eabi.js' failed: 500 Internal Server Error
Go https://esm.sh/v106/@swc/[email protected]/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;
You should probably use the wasm version, since the server can handle the .node dependency for now