Ask Your Question
0

Although my nodemon informs me about restarting due to changes, I cannot observe the applied modifications when I refresh my browser.

asked 2021-04-20 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-08-28 06:00:00 +0000

huitzilopochtli gravatar image

There are a few potential reasons why you may not be able to see the changes you made to your code even after nodemon has restarted the server:

  1. Cache: Your browser may be caching the old version of your code. Try clearing your browser cache and refreshing the page again.

  2. Server not running: Check that your server is actually running after nodemon has restarted. Look for any errors or logs in your console.

  3. Server port: Make sure the port your server is running on is correct. Check your server code to see which port it's listening on, and make sure it matches the port you're trying to access in your browser.

  4. File path: Double-check that the changes you made were saved to the correct file path. If the changes weren't saved to the file that nodemon is monitoring, then it won't be aware of the changes.

  5. Nodemon configuration: Check your nodemon configuration to ensure that it's monitoring the correct file extensions and directories. If it's not set up correctly, nodemon might not be restarting your server when changes are made.

By reviewing and debugging these issues, you should be able to see the applied modifications when you refresh your browser.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-04-20 11:00:00 +0000

Seen: 9 times

Last updated: Aug 28 '22