Error with relativ import path after "deno install"
Is it possible that imports in deno.json are ignored after "deno install"?
This works fine
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•2y ago
Message Not Public
Sign In & Join Server To View
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).I created an Issue: https://github.com/denoland/deno/issues/17834
GitHub
importmap ignored by
deno install
· Issue #17834 · denoland/denoWhen 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/&...