DenoDDeno
Powered by
adoublefA
Denoβ€’3y agoβ€’
3 replies
adoublef

workspace import

I have a vsc root-level settings.json file

{
    "deno.enable": true,
    "deno.enablePaths": [
        "./"
    ],
}
{
    "deno.enable": true,
    "deno.enablePaths": [
        "./"
    ],
}


I want to be able to use the following inside of the deno projects inside the directory

{
    "imports": {
        "$std/":"https://deno.land/std@0.217.0/"
    }
}
{
    "imports": {
        "$std/":"https://deno.land/std@0.217.0/"
    }
}


but I am getting the following
Relative import path "$std/assert/mod.ts" not prefixed with / or ./ or ../deno(import-prefix-missing)
Relative import path "$std/assert/mod.ts" not prefixed with / or ./ or ../deno(import-prefix-missing)
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

Workspace-aware path imports
i_use_arch_btwIi_use_arch_btw / help
12mo ago
Importing from Deno Workspace to NPM workspace
Amin NAIRIAAmin NAIRI / help
16mo ago
Import local package in sub folder workspace
wRadionWwRadion / help
15mo ago