Skip to content

Cannot find module when using paths #2152

@eamodio

Description

@eamodio

Extension Version

0.20251123.1

VS Code Version

1.107.0-insider

Operating system Version

Windows_NT x64 10.0.26220

Steps to reproduce

  1. Using the https://github.com/gitkraken/vscode-gitlens codebase
  2. Use tsgo and open a file that uses the @env/ path
  3. You will see lots of Cannot find module '@env/*' or its corresponding type declarations. errors

Issue

Errors in files that use paths imports e.g. Cannot find module '@env/*' or its corresponding type declarations. errors

I've also tried removing the baseUrl that tsgo also complains about, and changing the paths to be relative (which it also complains about), but neither helped and completely break the build (which is not tsgo).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: EditorRelated to the LSP server, editor experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions