As I work on my pristine Angular 10 project using Typescript 3.9.7, I've encountered an issue with some of the auto imports and suggestions not functioning correctly. For instance, when trying to import FormsModule from @angular/forms by typing FormsM..., it does not autocomplete as expected. Instead, I see suggestions like FormStyle from @angular/common.
https://i.sstatic.net/nxzUg.png
I attempted to rectify this by adding "typeRoots": [ "node_modules" ] to my tsconfig.json, but unfortunately, that did not solve the problem. So, is this an issue with TypeScript or Visual Studio Code? This frustration is really impacting my productivity. Any assistance would be greatly appreciated.
Despite installing various extensions, none seem to address the dilemma. The extensions I currently have enabled are:
- Visual Studio IntelliCode
- TypeScript Toolbox
- TypeScript Importer
- TypeScript Hero
- TSLint
- Prettier
- Javascript (ES6) code snippets
- Angular Files