You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.0.0
Plugin version
No response
Node.js version
16.17.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04
Description
At #547, I mistakenly assumed that watch mode was not working because of esm, in fact, watch mode is not working if the project is in the git worktree.
If you use typescript, then typescript rebuilds the project, but the server still does not restart.
Steps to Reproduce
git clone https://github.com/railwayapp-templates/fastify --bare
cd fastify.git
git worktree add main
cd main
npm i
npm run dev
change any file -> typescript rebuild -> server does not restart
Activity
mcollina commentedon Sep 7, 2022
What's special with
worktreethat breaks this? We just use normal OS file watching.monkoninja commentedon Sep 9, 2022
I'm not sure what the problem is, so far I'm using
nodemon. It works withworktree.nooreldeenmansour commentedon Sep 19, 2022
I couldn't reproduce this on my end, I followed the steps you listed.
My environment:
Eomm commentedon Sep 24, 2022
I think the source of the issue starts from here:
nodejs/node#36005
and leads to the
chokidarmodule's fundingIf we drop that module, we should go for the
node:fs.watchone