-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TypeScript import suggestion not showing symlinked modules #37414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Seems like a duplicate of #36460 (comment)? |
Hi, no. I have disabled PnP in this case to return to regular node_modules.
I understand that PnP won't work because they are zip files rather than
source codes. But in this case they are all source codes.
The line in `.yarnrc.yml` enables this built in plugin, which disable PnP and add back regular `node_modules`
https://github.com/yarnpkg/berry/tree/master/packages/plugin-node-modules
2020年3月17日(火) 0:13 Matt Bierner <[email protected]>:
… Seems like a duplicate of #36460 (comment)
<#36460 (comment)>
?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37414 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLEGHBRYYL34VO3L7RWUQLRHZM3PANCNFSM4LMOQR6A>
.
|
Bump. Since my work drive is not that big I had to move all node_modules in a different (disposable, also faster) drive. Typescript now can't find any of the imports (e.g. trying to import |
I have the same problem using yarn v1 / npm workspaces. Interestingly, once a file from another module (e.g. |
Uh oh!
There was an error while loading. Please reload this page.
TS Template added by @mjbvz
TypeScript Version: 3.8.3
Search Terms
ts-yarnv2-symlink.zip
Issue Type: Bug
Open the included project and run
yarn
at root to initialize everything. This is ayarn
V2 workspace project withnode_modules
linker, allowing a monorepo to gather its sub-packages to the top levelnode_modules
to reference together. You can see here thatnode_modules
hasws1
andws2
of the inner packages.Go to file
p1.ts
that attempts to usep2Function
from an another package. I have put the dependency inpackage.json
as well. Try to call the import suggestion and it is not aware of possible choice.Uncomment the first line and see that the line works, and go to definition works. Therefore, the suggestion has a bug that can't take symlinked packages in account. Moving the
p2.ts
file intop2/index.ts
didn't enable the suggestion either.VS Code version: Code 1.43.0 (78a4c91400152c0f27ba4d363eb56d2835f9903a, 2020-03-09T19:34:44.548Z)
OS version: Darwin x64 19.3.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Extensions (38)
(34 theme extensions excluded)
The text was updated successfully, but these errors were encountered: