You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Report: Import Map Resolution Issue in deno install
Version: Deno 2.1.5, 2.1.6
Description
Since Deno 2.1.5, there appears to be a breaking change in how deno install handles import maps when specified both in the configuration file and via command line flag.
Current Behavior
When using deno install with both a config file containing an importMap field and the --import-map flag, Deno attempts to read the import map from the local path specified in the config file, resulting in an error.
Error message:
error: Unable to read import map at '/Users/staytuned/.deno/bin/import_map.json'
Previous Behavior
In earlier versions, Deno would ignore the importMap field in the config file when the --import-map flag was present, showing a warning:
Warning the configuration file "file:///../deno.json" contains an entry for "importMap" that is being ignored.
The --import-map flag should take precedence over the config file's importMap field, as it did in previous versions.
Additional Context
This issue is related to #26110 where remote URLs in config files are not supported. The current behavior makes it difficult to install CLI tools from remote locations that require import maps.
The text was updated successfully, but these errors were encountered:
Thank you to the Deno team for the incredibly quick response and fix! Really appreciate the fast turnaround time - it's great to see such responsive maintenance of the project. This kind of quick service helps the whole community. 👍
Bug Report: Import Map Resolution Issue in deno install
Version: Deno 2.1.5, 2.1.6
Description
Since Deno 2.1.5, there appears to be a breaking change in how
deno install
handles import maps when specified both in the configuration file and via command line flag.Current Behavior
When using
deno install
with both a config file containing animportMap
field and the--import-map
flag, Deno attempts to read the import map from the local path specified in the config file, resulting in an error.Error message:
Previous Behavior
In earlier versions, Deno would ignore the
importMap
field in the config file when the--import-map
flag was present, showing a warning:Steps to Reproduce
deno.json
with:Expected Behavior
The
--import-map
flag should take precedence over the config file'simportMap
field, as it did in previous versions.Additional Context
This issue is related to #26110 where remote URLs in config files are not supported. The current behavior makes it difficult to install CLI tools from remote locations that require import maps.
The text was updated successfully, but these errors were encountered: