I killed the task running at that port (in my case my react app at localhost:3000) using: npx kill-port 3000 and restarted my app as usual.
npx kill-port 3000