Broken Auto Import in Visual Studio Code

I am using Visual Studio code to develop Angular 2+.

After some time, auto-import for classes and dependencies stops working partially. I don’t know what I did for sure, but before that everything worked fine. Now it does not find all available exported classes, such as Angular or mine. Case study: if I try to import a router, it should add:

import { Router } from '@angular/router'; 

But now I do not get this option: Router import example.

I reinstalled VSCode and disabled all plugins, but the problem still persists.

I Googled, I found possible solutions, for example, the following pages:

But not one of them solved my problem, since it did not correspond to my problem.

Visual Studio Code 1.22.1. ( .) Windows 10.

, . . ? , , Angular, IDE?

.

+6

Source: https://habr.com/ru/post/1695847/


All Articles