Skip to content

TS2307 Delete a folder of .ts files does not trigger ts(2307) error hint #2386

@ColaFanta

Description

@ColaFanta

Extension Version

0.20251215.1

VS Code Version

1.107.0

Operating system Version

MacOS Tahoo 26.2

Steps to reproduce

  1. Create a folder "f"
  2. Create a file "content.ts"
  3. Write code into "content.ts":
 export const val = 1;
  1. Create a file at the same level of that folder "f": "index.ts"
  2. Write code into "index.ts"
import {val} from "./f/content.ts"

console.log(val)
  1. Delete folder "f"
  2. Editor does not show cannot find module...ts(2307) error

Issue

After deletion of an referenced folder, VSCode does not complaint Cannot find module './social-auth' or its corresponding type declarations. ts(2307) error

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