Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code typescript auto import not working

As the title stated my VS Code doesn't auto import my modules, I'm trying to import MatDialogModule in the image below and it doesn't show me any Angular Material options

enter image description here

like image 758
M.Izzat Avatar asked Mar 05 '26 14:03

M.Izzat


1 Answers

For Angular 13, below solution worked for me: Add this in tsconfig.json under compilerOptions.

"typeRoots": ["node_modules/@angular/material"]
like image 148
Rut Shah Avatar answered Mar 08 '26 05:03

Rut Shah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!