Skip to content

Issue with setting up import maps with deno and vscode #30573

@jaber-ghanem

Description

@jaber-ghanem

Version:deno 2.4.5 (stable, release, x86_64-unknown-linux-gnu)
v8 13.7.152.14-rusty
typescript 5.8.3

I'm experiencing an issue where VSCode doesn't recognize my import maps
The imports are working and vscode kind of recognizes them because I can navigate to the correct files from the import maps such "@types/users.ts" with no issues by doing "shift + right click" on the path
But the typescript server in vscode keeps complaining about it, I'm not sure if this is an issue with deno or vscode or how I setup my environment

This is the deno.json file that I have

{
  "tasks": {
    "dev": "deno run -A --watch ./src/main.ts",
    "lint": "deno lint"
  },
  "importMap": "./import_map.json"
}

And this is the import maps file that I have

{
  "imports": {
    "@types/": "./src/types/",
    "@std/assert": "jsr:@std/assert@1",
    "@std/dotenv": "jsr:@std/dotenv@^0.225.5"
  }
}

But regardless of what i change vscode keeps complaining about it

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions