NODE.JS Replit Auto Refreshes on Error

For some reason, if there is an error on the server side, the error will appear for a brief second, then the server will restart and clear the console. Btw, by server I mean code written in index.js.

Code: https://replit.com/@armn8811/Fighting

2 Likes

Hi! This is a known issue with many repls, you might want to create a logfile and create some code that adds to a logfile.

Thank you, I never thought of that!

How would I go about doing that?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.