Skip to content

Module resolution: extensions are not included in path resolution #62706

@vdegenne

Description

@vdegenne

Demo Repo

https://github.com/ghost/myrepo

Which of the following problems are you reporting?

Something else more complicated which I'll explain in more detail

Demonstrate the defect described above with a code sample.

A video is worth a thousand words

screencast_2025-11-01_18-36-25.mp4

The .js part there is lost

Run tsc --showConfig and paste its output here

private project,
happens everywhere though.

Run tsc --traceResolution and paste its output here

private

Paste the package.json of the importing module, if it exists

private

Paste the package.json of the target module, if it exists

private

Any other comments can go here

The issue appears both on vscode, and in nvim using mason/lsp/tsserver

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions