Closed shenchaoran closed 6 years ago
I know what happened, it's really a silly question.
I used nodemon
to restart my nodejs project, and this code is invoked after file uploaded. So the nodemon will restart my project.
To resolve this, just add ignore files in nodemon.json
.
I use in typescript, sometimes it will make node crash. The code is like below:
the js files compiled out is the same like this. And if I run the js file it won't collapse.