Try/catch has to be one of the worst patterns to handle errors especially in js/ts. No type safety. It allows to swallow errors way to easily. That's where error handling patterns in languages like rust/go shine. You can't access your data without handling the error first.
I just had an issue with Nextjs when the dev server of a fresh project would just crash my machine and log me out. Every single time. Tried to switch to vscode deb version instead of the snap package (unrelated but still).
The fix was simple: delete the .next folder
@ThePrimeagen I'm building a platform to track coding time, languages, projects and give a summary to the user, powered by a vscode extension: https://t.co/vJIOpIRoyp