[Bug] [Yarn Berry] TS2742: The inferred type of 'testContext' cannot be named without a reference to './.yarn/cache/...' #36675
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
TypeScript Version: 3.8.0-dev.20200207
Also tested on 3.5, 3.6 and 3.7 with the same results.
Search Terms: Yarn Berry TS2742 inferred type cannot be named
Code
Example file: https://gist.github.com/skoging/72262b3ac553899b61ad7b6844b3b2b3
Expected behavior:
Yarn 1:
Actual behavior:
Yarn 2
Playground Link:
Related Issues:
#29808
#32970
#29221
#30858
These other issues are likely due the same underlying problem. But based on the comments on some of them, it seems a separate issue with simple reproduction steps is preferred.
This issue is specifically about this problem in Yarn 2 (Yarn Berry).
Yarn:
yarnpkg/berry#919
yarnpkg/berry#736
The text was updated successfully, but these errors were encountered: