peteypie_
peteypie_
TTCTheo's Typesafe Cult
Created by peteypie_ on 12/29/2023 in #questions
VSCode Intellisense: "Add import from" only suggests relative path for `cn`
When using the Quick Fix menu in VSCode ("Cmd + ."), it only suggests the relative path to import my cn function. It DOES work correctly when I'm trying to add an import for something in my components directory (see screenshots). They appear to be set up the same so I'm not sure what gives. In my tsconfig.json file, I have
"paths": {
"@/*": ["./src/*"]
}
"paths": {
"@/*": ["./src/*"]
}
I don't think this is relevant, but my shadcn components.json file includes:
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
5 replies