WilcoW
Denoβ€’16mo agoβ€’
2 replies
Wilco

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?
Was this page helpful?