Skip to content

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

Closed

Description

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.

Activity

  1. removed their assignment
    on Feb 7, 2024
  2. added
    Needs Investigation
    on Feb 8, 2024
  3. sheetalkamat commented on Apr 9, 2024

    @sheetalkamat
    Member

    I am trying to see if #58139 can help you but when i run this with typescript nightly or my version of PR the error about resolving module doesnt go away event if i start tsserver fresh after the build. Am i missing any steps

  4. added
    Needs More Info
    and removed
    Needs Investigation
    on Apr 9, 2024
  5. Seboran commented on Apr 15, 2024

    @Seboran
    Author

    Hi, I just fixed the repo, the package.json file was missing, sorry about that.

    You should get an error like this:
    image

  6. sheetalkamat commented on Apr 15, 2024

    @sheetalkamat
    Member

    This seems to be fixed by #58139 as with nightly i see that error gets resolved.

  7. added
    Fixed
    and removed
    Needs More Info
    on Apr 15, 2024
  8. locked as resolved and limited conversation to collaborators on Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugFixed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions