Module Aliases & Intellisense in VSCode
Unanswered
Asari posted this in #help-forum
AsariOP
Hello, I'm using module aliases in Next App Router and they work as they should:
But I haven't been able to figure out how to get Intellisense to recognize and do the autocomplete e.g. if I start typing "import Button...", Intellisense will give "@/components" as an example and not just going back to the relative path or the base path. I suspect it may be something with workspace settings. Does anyone know how to configure this? Here's the relevant tsconfig.json
import {Button} from '@/components'But I haven't been able to figure out how to get Intellisense to recognize and do the autocomplete e.g. if I start typing "import Button...", Intellisense will give "@/components" as an example and not just going back to the relative path or the base path. I suspect it may be something with workspace settings. Does anyone know how to configure this? Here's the relevant tsconfig.json
"paths": {
"~/*": ["./src/*"],
"@/components": ["./src/app/_components"],
"@/components/*": ["./src/app/_components/*"],
"@/constants": ["./src/lib/constants"],
"@/icons": ["./src/app/_components/icons"],
}