Skip to content

Intellisense can't find types in a pnpm workspace when types are built again #57329

Closed
@Seboran

Description

@Seboran

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Version: 1.86.0 (Universal)
  • OS Version: OS: Darwin x64 23.2.0

Steps to Reproduce:

  1. Clone https://github.com/Seboran/repro-pnpm-intellisense
  2. Install with pnpm i from root
  3. Open file https://github.com/Seboran/repro-pnpm-intellisense/blob/f2d02c1f80dfc8f307112a4f03a65e439a684f1e/packages/solid-playground/index.ts
  4. Run pnpm build, which builds types of the other package.
  5. Get the message "Could not find a declaration file for module"
    image

When you restart the typescript server, the issue goes away.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions