-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run dev in typescript project, watch is not working #246
Comments
I have a similar issue. I have to make a change a second time to see the first change happening. if I do a third change, I'll see th second, etc. |
Ah well, sorry, found why... (looks like typing my message rubber ducked me). So I added Not sure it is related, but if it helps.... |
I think this is solved in the latest version of the code. |
I just shipped that, please check again. |
There is an issue indeed. |
Go for that! |
Working hard on this. |
Ok. Just open a WIP PR and we will discuss on the best way to handle this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
the fix is described here |
@mcollina @alemagio, I am still seeing this exact problem with a freshly generated Typescript fastify-cli project (v2.10.0). Is there still work being done or was this IMHO essential feature abandoned? I have a workaround involving |
@soulchild |
Thanks, @alemagio! I was under the impression that your solution was just a hot-fix until a more permanent solution was found. But I'm happy to just stick with it, if that is what will eventually be merged anyways. 😄 |
I think that changing that behavior is not that simple. |
The In case anyone ever runs into the issue, where Example: You have the following directory structure:
Changed files within the folders Change the - "dev": "tsc && concurrently -k -p \"[{name}]\" -n \"TypeScript,App\" -c \"yellow.bold,cyan.bold\" \"tsc --watch\" \"fastify start --ignore-watch=.ts$ -w -l info -P dist/app.js\""
+ "dev": "tsc && concurrently -k -p \"[{name}]\" -n \"TypeScript,App\" -c \"yellow.bold,cyan.bold\" \"tsc --watch\" \"fastify start --ignore-watch=\\\".next logs .ts$\\\" -w -l info -P dist/app.js\"" Please note that single quote In addition to that, add the to be excluded folders in the "exclude": [
"node_modules",
+ ".next",
+ "logs"
] As an alternative, you could also use bash for windows (kentcdodds/cross-env#192 (comment)), create an Hope this helps someone in the future :) |
🐛 Bug Report
Changed Typescript files cannot be applied.
To Reproduce
Steps to reproduce the behavior:
npm run dev
npm run dev
, run agin to make the change applied.Expected behavior
/example response changed according to 3.'s change.
Your Environment
setup step:
#131 (comment)
The text was updated successfully, but these errors were encountered: