Thomas
Thomas2y ago

Error with relativ import path after "deno install"

Is it possible that imports in deno.json are ignored after "deno install"?
deno run ./my-cli.ts
deno run ./my-cli.ts
This works fine
deno install ./my-cli.ts

my-cli
deno install ./my-cli.ts

my-cli
But this throws an error: error: Relative import path "std/fmt/colors.ts" not prefixed with / or ./ or ../ at .../handler.ts:1:29
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thomas
Thomas2y ago
It looks like deno install ignores the import-mapping. I will try to use a dept-file instead. If this works, maybe I am right and imageMap is really ignored by deno install. I can confirm that it works with a dept.ts file (i.e. without importMap).
Thomas
Thomas2y ago
GitHub
importmap ignored by deno install · Issue #17834 · denoland/deno
When I use importMap, my code does not work as executable (deno install). Tested with Deno v1.30.3. Minimal reproducible example: deno.json: { ... "imports": { "std/&...