Vite with Jsconfig
The code works fine with CRA, but when migrated to vite, the import statement throws error.
Its apparently assuming utils as a package because I dint prefix it with "../utils", but I don't technically have to anymore since I'm using jsconfig and it worked well in CRA
Attaching the code and error
12 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Thanks for the response.
It still throws the same error unfortunately
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
The tree is too long to take a screenshot, so here is the folder structure if that helps
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
@collegesimple thanks for the response man, sorry for ghosting on you, I tried many solutions and nothing worked, so I kinda gave up on it
This is the folder structure in case you have some ideas.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Sure, I'll give you a repo link to the sample project I created
@collegesimple yooo ignoree, I got it to workkk 😍
I just had to put this configuration in the vite file
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
thanks for your time man, appreciate it ❤️
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View