Loading circle of death :(

Hi guys, I recently subscribed to Mosh backend programming in Node/Express/MongoDB. I am hard stuck at a very trivial problem and need help. So my programme is connected to port 8080 and my database is connected as well. Whenever I run the programme on nodemon, it shows listening to port 8080 and connected to database. However, my when searching in Chrome browser localhost:8080 it starts a never ending loading circle of death. Funny enough, when I stop running the programme, the page loads up instantly. But then of course I am unable to submit any form details to backend cause the programme is stopped. have tried pretty much everything from watching hours of videos on YouTube to solve this and still can’t. Help if anyone knows the solution thanks.