Out of the box vite doesn't provide "@" path alias to src, so we have to manually setup it. I suppose you're using Vite preset for react-ts.
Steps...
For further actions, you may consider blocking this person and/or reporting abuse
Does this work for nested paths? I'm trying to do something like this, and the nested folder isn't working for me:
Hi @anna
For multiple aliases, you can follow this answer on stackoverflow.
stackoverflow.com/a/75201776/3144344
Thank you very much...
but what if I want to use it in the pattern
import Container from '@components/Container'
how would the configuration look?
So helpful, thanks!
Nice! Thank you so. much I was blocked with this error.
Thanks for that ❤️
Wow, thanks a lot Alex! It sure did the work done <3
This really helped, Thanks
Awesome, worked a charm :)
how we can add auto suggestions for VS Code?
Thank you so much! That really helped me, spent half of my day trying to resolve problems with using aliases.