DenoDDeno
Powered by
WilcoW
Denoβ€’2y 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 ../
Relative import path "hono" not prefixed with / or ./ or ../
. (Reported by
deno(import-prefix-missing
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?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

WebStorm not recognising deno.json import map
JamesJJames / help
3mo ago
Node.JS project to import Deno project in a workspace
gbaranskiGgbaranski / help
17mo ago
vscode run Deno: Initialize Workspace & Deno: Enable still no joy
Shawn FullerSShawn Fuller / help
2y ago
Deno LSP vscode issues when using Remote Explorer
sergeesSsergees / help
3y ago