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
Watch mode loops endlessly #11038
Comments
Please provide a minimum reproduction repository. You can start from this minimal project. why reproductions are required |
Well that's part of the problem - you probably wouldn't be able to reproduce this. |
If I had to guess, this would be a windows specific thing with typescript 4.9 due to how watched files are computed. I've got no clue otherwise though. Especially cause you said |
Well there's got to be more to it than tsc --watch because tsc --watch doesn't actually start the project for me, just compiles the files.. |
You're right, we call |
Is there a way (or maybe this already happens) to make |
Again, it's typescript that sees the changed file. Nest just starts up the |
I understand... |
Mm interesting... But if it's a version thing how is it possible that it works on one machine but not on the other one even though they are using the same version? |
yes, OS works like that, you know |
I suggest you to play with |
Thank you so much, this solved my problem, I was looking for a solution for weeks now. |
@Hareloo could you please add a new section at https://docs.nestjs.com/faq/common-errors to guide windows users that are using That's not the first time I saw people complaining with |
hi @Hareloo ,May I ask what configuration did you modify to solve this problem? I have been troubled for a long time, but I have read your docs and found no solution steps. Here is my modified tsconfig.json configuration |
Is there an existing issue for this?
Current behavior
Hello!
I am experiencing a very weird bug:
In my personal home computer, I can create a NestJS project using the CLI and running with npm run start:dev with no problem.
In my laptop however, the exact same thing doesn't work - again, I am creating a default project with the NestJS cli but when I start it with npm run start:dev it loops endless with:
I also tried to use tsc --watch and that does work on my laptop as well...
I don't even know where to begin debugging something like this, I'm talking about the default project and I'm using the same node, npm and typescript versions on both computers...
Would appreciate some help if possible
Minimum reproduction code
Default project
Steps to reproduce
No response
Expected behavior
Watch for file changes and only re-compile when those are detected.
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
No response
Packages versions
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: