dev server suddenly stopped working

I was working on my application and it stopped working
20 Replies
nexxel
nexxel3y ago
cool
Leonidas
Leonidas3y ago
Dev servers are made for development and reliability is none of their strengths. Simply restart it…
aditya
adityaOP3y ago
didnt work
Leonidas
Leonidas3y ago
In case you hope to get useful help you need to provide some context☝🏼
aditya
adityaOP3y ago
yes i know that im sending it bad internet
Leonidas
Leonidas3y 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
adityaOP3y ago
yes using next
aditya
adityaOP3y ago
theo (t3.gg)
theo (t3.gg)3y 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
John3y ago
I’d nuke the node_modules
aditya
adityaOP3y ago
I'll try that thanks tried it didnt work
theo (t3.gg)
theo (t3.gg)3y ago
Kill .next as well Often helps more than node_modules
aditya
adityaOP3y ago
working now deleted everything starting with . also should i switch to pnpm?
nexxel
nexxel3y ago
yes
Leonidas
Leonidas3y 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
mac3y 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
nexxel3y ago
i'll be honest, npm is terrible its not only the disk space management but the speed
Leonidas
Leonidas3y ago
Lets not start this convo here 😄 Feel free to create a thread though☝🏼
nexxel
nexxel3y 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