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