Skip to content

TypeScript: imports in a Deno project resolve to nothing #1984

Closed

Description

@swapnilpaliwal-sd

Symptom

In a TypeScript project run by Deno (a deno.json or deno.jsonc, usually no tsconfig.json and no node_modules), almost every import resolves to nothing:

  • an import-map entry ("@/": "./src/", "lib": "jsr:@scope/lib@^1") is UNRESOLVED
  • a workspace member imported by its name (@scope/member, @scope/member/sub) is UNRESOLVED, so every call across members is matched by name only
  • jsr: and npm: specifiers, and https: imports, are UNRESOLVED, and their packageName is wrong (https:, npm:pkg@^3)
  • --library auto finds no dependency at all, because Deno keeps them in its own cache rather than node_modules

On a public Deno web app (67 files, 333 imports), 266 of the 333 imports disagreed with deno info --json, and the graph had no call into any dependency.

Only relative ./x.ts imports resolve today.

Expected

Imports resolve as Deno resolves them, and --library auto stages what a Deno project imports. A project with no Deno config is unaffected.

Activity

  1. swapnilpaliwal-sd commented on Oct 24, 2026

    @swapnilpaliwal-sd
    ContributorAuthor

    Taking this one. Fix in the parser (Deno config, import maps, workspaces, jsr:, npm: and URL modules) plus library discovery, PR into 0.2.1.

  2. swapnilpaliwal-sd commented on Oct 24, 2026

    @swapnilpaliwal-sd
    ContributorAuthor

    Merged into 0.2.1 in #1985. It closes when 0.2.1 reaches main.

  3. github-actions commented on Oct 27, 2026

    @github-actions
    Contributor

    Closed by #1985, which merged into 0.2.1 and reached dev in 4c67af0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

parserthe parser (parser/), transferred from AxiomCodeAI/parsertypescriptTypeScript

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions