Skip to content

Collect _all_ symlinks a file may have witnessed when attempting to generate specifiers - #31571

Merged
Wesley Wigham (weswigham) merged 1 commit into
microsoft:masterfrom
weswigham:sort-globalish-specifiers
May 24, 2019
Merged

Collect _all_ symlinks a file may have witnessed when attempting to generate specifiers#31571
Wesley Wigham (weswigham) merged 1 commit into
microsoft:masterfrom
weswigham:sort-globalish-specifiers

Conversation

@weswigham

@weswighamWesley Wigham (weswigham) commented May 23, 2019

Copy link
Copy Markdown
Member

Fixes an issue brought up by Simon Fox (@simonfox) in this comment.

Also fixesthis comment

Fixes#29221, probably - the repro from the OP has had a bit of bitrot and doesn't really compile clean.

The issue was essentially that importHelpers synthesizes an import entry in every file, which in turn makes a new moduleResolution - and we were then only inspecting the first moduleResolution for possible symlinks, rather than all of them (so the tslib import would prevent us from finding any symlinks).

@weswigham
Wesley Wigham (weswigham) merged commit bb4080c into microsoft:masterMay 24, 2019
@weswigham
Wesley Wigham (weswigham) deleted the sort-globalish-specifiers branch May 24, 2019 00:17
@simonfox

Copy link
Copy Markdown

This doesn't fix the repro I've provided.

@simonfox

Copy link
Copy Markdown

Wesley Wigham (@weswigham) should I open a new issue as this hasn't fixed my repro?

@regevbr

Copy link
Copy Markdown

Wesley Wigham (@weswigham) I still encounter the issue as well!

@antl3x

Copy link
Copy Markdown

This really hasn't fixed the #29221

@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

importHelpers with symlinks breaks type resolution

5 participants

@weswigham@simonfox@regevbr@antl3x@andrewbranch