dev server suddenly stopped working

I was working on my application and it stopped working
20 Replies
nexxel
nexxel2y ago
cool
Leonidas
Leonidas2y ago
Dev servers are made for development and reliability is none of their strengths. Simply restart it…
aditya
aditya2y ago
didnt work
Leonidas
Leonidas2y ago
In case you hope to get useful help you need to provide some context☝🏼
aditya
aditya2y ago
yes i know that im sending it bad internet
Leonidas
Leonidas2y ago
From the top of my head you should first try to delete the .next folder Bit i dont know if you even are using next
aditya
aditya2y ago
yes using next
aditya
aditya2y ago
theo (t3.gg)
theo (t3.gg)2y ago
Looks like some weirdness with your node and Yarn setup on windows Make sure you’re on the latest node 18 version And consider using a less weird package manager
John
John2y ago
I’d nuke the node_modules
aditya
aditya2y ago
I'll try that thanks tried it didnt work
theo (t3.gg)
theo (t3.gg)2y ago
Kill .next as well Often helps more than node_modules
aditya
aditya2y ago
working now deleted everything starting with . also should i switch to pnpm?
nexxel
nexxel2y ago
yes
Leonidas
Leonidas2y ago
I would suggest to use npm, the native package manager of node. It takes up more disk space than pnpm, but you encounter less weird edge cases like the one ur having right now☝🏼 (only takes up more disk space when having shared dependencies across projects)
mac
mac2y ago
happened to me this morning (was using npm on windows). I deleted nodemodules and .next and it seemed to work after that. also get a Mac they are superior with vscode
nexxel
nexxel2y ago
i'll be honest, npm is terrible its not only the disk space management but the speed
Leonidas
Leonidas2y ago
Lets not start this convo here 😄 Feel free to create a thread though☝🏼
nexxel
nexxel2y ago
its gotten faster, but only in USA lol no worries, just saying pnpm is pretty good and doesn't have a lot of edge cases like you mentioned, a lot of big projects are migrating to it.
Want results from more Discord servers?
Add your server