Import autocompletion with project references and yarn workspaces doesn't work #38955
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
TypeScript Version: 3.9.5
Search Terms:
"project references" import
"project references" import autocomplete
"project references" monorepo
Description
Hello! First of all, thank you for all amazing work!
I've been trying to befriend yarn workspaces, project references and import autocompletion for a while. It was a relief to see that caveat mentioned in docs is resolved, but didn't manage to do it myself. I've even tried example repo provided by maintainers, but no luck.
When using only yarn workspaces there're no issues at all - all packages listed in workspaces are imported with no issue. After adding ts and project references autocomplete disappears, though Go to Definition works as expected.
I'm is using
@babel/preset-typescript
so don't actually rely ond.ts
.Could you please point to whether I'm doing anything wrong or the issue really takes place?
Thanks in advance!
Code
I've created example repo. Initial commit illustrates how things didn't work initially, and second commit is updates due to maintainer's example.
Expected behavior:
Import autocomplete is available without building with
tsc -d
Actual behavior:

Related Issues:
The text was updated successfully, but these errors were encountered: