Project saving changes forever

when I do anything with my project, make changes, start it up, etc. it stays on the “saving changes” symbol forever. Could someone please tell me how to fix this?

Hey @Cudiiz,

Make sure you have this line of code in your main Node file:

const listener = app.listen(port, function() {
  console.log("Your app is listening on port " + listener.address().port);

Hope this helps!

it’s giving an error:
`const listener = app.listen(port, function() {

10:22 AM


10:22 AM

10:22 AM

ReferenceError: port is not defined

Replace port with process.env.PORT.