Update your tsconfig.json
or jsconfig.json
"compilerOptions": {
...
"baseUrl": ".",
"paths": {
"@alias": ["components"],
"@alias/*": ["components/*"]
}
}
Now, restart you TS server
On Mac
Cmd+Shift+P > Typescript: Restart TS Server
On PC
Ctrl+Shift+P > Typescript: Restart TS Server