Skip to content
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

Auto import not working #94471

Closed
gultyayev opened this issue Apr 5, 2020 · 5 comments
Closed

Auto import not working #94471

gultyayev opened this issue Apr 5, 2020 · 5 comments
Assignees
Labels
typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@gultyayev
Copy link

  • VSCode Version: 1.43.2
  • OS Version: Windows 10 (1909)

Steps to Reproduce:

  1. Create nx workspace with Angular - Nest.JS npx create-nx-workspace@latest test
  2. Install package npm i @nestjs/config
  3. Navigate to nest js app module
  4. Try to add ConfigModule to imports
  5. See no suggestions to import from '@nestjs/config'

Same happens for Angular's FormsModule and ReactiveFormsModule and to many more

Does this issue occur when all extensions are disabled?: Yes

@mjbvz
Copy link
Collaborator

mjbvz commented Apr 6, 2020

Please try upgrading your workspace to use typescript@next by installing this extension

After installing and restarting VS Code, does it work?

@mjbvz mjbvz added info-needed Issue requires more information from poster typescript Typescript support issues labels Apr 6, 2020
@gultyayev
Copy link
Author

gultyayev commented Apr 8, 2020

Well. I've installed VSCode Insiders as it stated in comments when submitting the issue (I suppose it can be taken as reinstall). Then I've installed the provided extention in the Insiders. Afterwards, I've reopened VSCode and tried to import FormsModule for Angular's part of a project and there were no autoimport suggestions as before,

@mjbvz
Copy link
Collaborator

mjbvz commented Apr 9, 2020

IF you add import '@nestjs/config' anywhere in your project, do auto-imports start working (even in other TS files?)

@gultyayev
Copy link
Author

Yes it does. But it should do that from the very beginning.

@mjbvz
Copy link
Collaborator

mjbvz commented Apr 10, 2020

Duplicate of microsoft/TypeScript#37812

@mjbvz mjbvz marked this as a duplicate of microsoft/TypeScript#37812 Apr 10, 2020
@mjbvz mjbvz closed this as completed Apr 10, 2020
@mjbvz mjbvz added upstream-issue-linked This is an upstream issue that has been reported upstream and removed info-needed Issue requires more information from poster labels Apr 10, 2020
@github-actions github-actions bot locked and limited conversation to collaborators May 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

2 participants