Troubleshooting Thursdays : Server detected changes needs to refreshed again (File operations in Functions, tested locally using CLI)

Troubleshooting Thursdays : Server detected changes needs to refreshed again (File operations in Functions, tested locally using CLI)

Welcome to #TroubleShootingThursday, where we provide solutions to common problems developers encounter. In today's post, we're talking about an issue you might face while working with files in the local debugging. If you face an error saying that the server detected changes inside the functions folder and needs to refresh again and stops executing your code, then we got the fix for you.

  1. catalyst serve --no-watch
While performing file related operations, the catalyst serve command will perform hot code replace when a change to any file in the folder is detected. This will cause ECONNRESET(connection reset) issue. When catalyst serve --no-watch command is run, there will be no hot code replace(will not look for any changes), and hence the file will be written properly.

      Catalyst Community