Pozzuh
Pozzuh4w ago

Deno vscode not using import map when in a workspace context

Hi, I'm trying to use Deno workspaces in a mixed deno/node environment. I have a package with deno enabled, which uses an import map in the deno.json file (package specific). In my code I'm getting the error Relative import path "hono" not prefixed with / or ./ or ../. (Reported by deno(import-prefix-missing) When I enable deno for the entire project (deno.enable in vscode settings) the error goes away. When I enable only for specific paths this error appears. Running the file works fine. Any known bugs in this regard?
2 Replies
Pozzuh
Pozzuh4w ago
GitHub
GitHub - WilcoKruijer/deno-bug-reproduction
Contribute to WilcoKruijer/deno-bug-reproduction development by creating an account on GitHub.
Pozzuh
Pozzuh4w ago
GitHub
Import map not recognized for sub-packages when using workspaces an...
Describe the bug Given a workspace { "workspace": [ "./apps/backend" ], } And a package with ./apps/backend/deno.json that has an import map { "imports": { "hono&...