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

Failed to import - `[email protected]`

Open threkk opened this issue 2 years ago • 4 comments

Failing module

  • GitHub: https://github.com/fgnass/domino
  • npm: https://www.npmjs.com/package/domino

Error message

After running deno run I got this:

error: Import 'https://esm.sh/v119/[email protected]/deno/domino.mjs' failed: 500 Internal Server Error
    at https://esm.sh/v119/[email protected]/deno/turndown.mjs:2:22

Additional info

  • esm.sh version: v119
  • Deno version:

deno 1.33.4 (release, aarch64-apple-darwin) v8 11.4.183.2 typescript 5.0.4

Output of https://esm.sh/v119/[email protected]/deno/domino.mjs

/* esm.sh - error */
throw new Error("[esm.sh] " + "esbuild: With statements cannot be used with the \"esm\" output format due to strict mode");
export default null;

threkk avatar May 23 '23 18:05 threkk

this happens because esbuild doesn't support with() statement in ESM format

ije avatar May 24 '23 10:05 ije

Is there any solution or alternative to make this package work?

threkk avatar Jun 26 '23 14:06 threkk

@threkk did you retry running this package on the latest esm.sh version? It might be fixed?

renhiyama avatar Jun 26 '23 14:06 renhiyama

Sadly still the same result :(

threkk avatar Jun 26 '23 20:06 threkk