Types don't load if alias in import map isn't exact match of package name when importing currency.js
from npm
#24090
Labels
design limitation
something that can't be fixed or is too hard to fix
Version: Deno 1.44.0; VS Code Extension v3.37.1
VS Code doesn't show types for a package (tried npm and esh.sh) defined in import maps, if the alias doesn't exactly match the name of the package.
Aliasing
npm:currency.js
ascurrency.js
will correctly display types in the IDE:"imports": { "currency.js": "npm:currency.js@2.0.4" }}
If using any other alias, e.g.
currency
,currency_js
, etc. the IDE will stop showing types for the package.The code compiles and runs in all cases, only type information is affected.
The text was updated successfully, but these errors were encountered: