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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
shaaah
shaaah2y ago
Thanks for the response. It still throws the same error unfortunately
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
shaaah
shaaah2y ago
The tree is too long to take a screenshot, so here is the folder structure if that helps
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
shaaah
shaaah2y ago
@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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
shaaah
shaaah2y ago
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
shaaah
shaaah2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
shaaah
shaaah2y ago
thanks for your time man, appreciate it ❤️
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server