esm.sh
esm.sh copied to clipboard
Failed to import - cli-color
Failing module
- GitHub: https://github.com/medikoo/cli-color
- npm: https://www.npmjs.com/package/cli-color
import cliColor from 'https://esm.sh/cli-color';
Error message
After running deno run I get this:
Download https://esm.sh/cli-color
error: Expected ,, got # at https://cdn.esm.sh/v51/[email protected]/deno/cli-color.js:2:107
Additional info
- esm.sh version: v51
- Deno version: 1.13.2
I get similar errors on:
json-schema-to-typescriptes5-extes6-iterator
From what I can tell, it looks like there's sometimes a # that ends up on a variable name that is imported. Here's an import statement which fails, this one from es6-iterator.js. The others seem similar: the importing URL seems to always have a # as well:
import __es5_ext_array_#_clear$ from "/v51/[email protected]/deno/array/#/clear.js";
This one appears to come from https://github.com/medikoo/es5-ext/tree/master/array/%23
Let me know if you need more info.
@cscheid thanks 🙏 as we know, in browser, including deno, a module is a standard URL that means the content after # will be treated as hash of the URL object. it's wired about the # dir. anyway i will fix this later, thanks for the useful info.