VS Code Auto-Import Not Using Custom Folder Aliases and #q-app Aliases #17694
-
Hello, last week I switcht my project to app-vite 2.0. Thanks again for the great work and docs! However I encountered a small problem. In my project I am using a custom '@' alias, which points to 'src'. Before the update I added this alias to quasar.config > build and to the tsconfig file in my project root. After the update I added it only to the quasar.config file, since the tsconfig is now auto-generated according to the docs. The problem is now, that each time I want to auto-import something it ignores my custom alias and prefers the default 'src' alias from Quasar. I am guessing that happens because my custom alias is at the end of the path list in .quasar/tsconfig. Before the update, it always suggested the import with @ alias prefix. Furthermore the #q-app/ aliases are also not suggested for auto-imports. Is there anyone else who has this problem and knows a fix? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Just to be thorough: run the "quasar prepare" command and restart VSCode. Do you still have issues? |
Beta Was this translation helpful? Give feedback.
It seems to prefer the actual package, unfortunately. Don’t think we can give it a hint for this. Nothing wrong with its suggestion though, but we recommend the alias, for future bulletproofing.