Skip to content

Cannot lookup for the global linked node_modules #26633

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

Closed
nguyennb9 opened this issue May 15, 2017 · 3 comments
Closed

Cannot lookup for the global linked node_modules #26633

nguyennb9 opened this issue May 15, 2017 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug javascript JavaScript support issues

Comments

@nguyennb9
Copy link

  • VSCode Version: Code 1.12.1 (f6868fc, 2017-05-04T21:18:32.269Z)
  • OS Version: Darwin x64 16.5.0
  • Extensions:
Extension Author Version
beautify HookyQR 1.0.2
project-manager alefragnani 0.16.0
theme-desertex casualjim 0.0.6
vscode-svgviewer cssho 1.4.0
vscode-eslint dbaeumer 1.2.8
githistory donjayamanne 0.2.0
json-tools eriklynd 1.0.2
prettier-vscode esbenp 0.17.1
flow-for-vscode flowtype 0.6.0
vscode-icon-theme jtlowe 1.5.0
Go lukehoban 0.6.61
addDocComments stevencl 0.0.8
react-beautify taichi 0.3.0

In my project, I create a lib module and linked it to the global module by command npm link: (https://docs.npmjs.com/cli/link). But in the editor, I cannot navigate to that module.

Steps to Reproduce:

  1. Create a node module name my_lib, make it global by npm link
    Extra step is to check if it work correctly by npm -g ls | grep my_lib
  2. In your code, import that lib:
    const my_lib = require('my_lib');
  3. Try to using the inner function, CMD + click, find the function... VSCode cannot navigate to the linked folder.
@nguyennb9
Copy link
Author

How was this issue so far?

@nguyennb9
Copy link
Author

Well, how can I do this manually?

@mjbvz
Copy link
Collaborator

mjbvz commented Dec 1, 2017

This issue was moved to microsoft/TypeScript#20401

@mjbvz mjbvz closed this as completed Dec 1, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

2 participants