Closed noctivityinc closed 6 months ago
@noctivityinc you're a full version behind, current latest nodemon is 3.0.2 - are you able to upgrade and then repeat your test?
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. Thank you for contributing <3
I'll add (having looked at the code), that this is correct - the start
event always runs when the subprocess is started (I've updated the wiki page for this).
The restart event is to notify that a change triggered or that a manual process was fired.
If you want to set something up for the first time, I'd recommend doing this outside of the events (or using a "start_ctr" counter or something like this).
I appreciate this probably wasn't entirely intuitive.
nodemon -v
: 2.0.4package.json - ran
npm run dev
devApp.js
Expected behaviour
When I change a file, the
restart
event will be triggered.Actual behaviour
The
start
event seems to be triggered, which is causing ngrok to try to reload again, which it cant because it's already running. Here is what I see in the terminal...Steps to reproduce
npm run dev
Change a file in the project
If applicable, please append the
--dump
flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.