-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[BUG] Hot reloading doesnt work with typescript 4.9.3 #10027
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
Comments
I tried to run you reproduction project, but it fails:
but I also wonder this is an actual Docker Compose issue: could you try running a plain docker container for this same project :
If same issue also applies to a plain docker container, then there's nothing we can do as Compose maintainers |
Hi, sorry. Need execute npm i before run docker compose up. As soon as I can I will try what you say |
Same problem Work only with ts 4.8.4 |
for some weird reason I can't build your Dockerfile:
... while and then, I can see ANYWAY please confirm this is a Compose issue by reproducing this bug with a plain docker container, i.e. |
Closing since it's been a while, please ping us with additional information (as requested above) for us to re-open and investigate if desired. |
Yes, as the default method for file watching has changed in TypeScript version 4.9. |
How can I fix this without downgrading? |
Unfortunately, nobody knows it yet. |
Description
Hi! First of all sorry for my english, I supported myself with a translation.
This error appears when I create a new nestJS project. I can't use the hot reload unless I change the typescript version to 4.7.3.
Here is a sample repository with a minimal reproduction of the bug.
Just change the typescript version in package.json in devDependencies from 4.9.3 to 4.7.3 and the project will start working.
Translated with www.DeepL.com/Translator (free version)
Steps To Reproduce
Clone the repository: https://github.com/gonzalormonja/-BUG-Hot-reloading-doesnt-work-with-typescript-4.9.3.git
docker compose up
change main.ts and save
expected: reload server, doesnt work
change change the typescript version in package.json in devDependencies "4.7.3"
execute npm i
docker compose up
change main.ts and save
expected: reload server, work
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: