Closed blurfx closed 3 years ago
In my opinion, this is because container file system and local file system are not synced. Can I try this?
@starkensin Sure!!
OH MY GOD I just realized that I didn't bind the source code directory. 😱
When I run docker-compose.dev.yml, it makes problem like this.
Additionally, installing "chokidar" dependency was not a solution.
Hmm, that's weird. I can't reproduce that problem.
Would you like to try after removing all dependencies and reinstalling?
Could you provide your current development environment? (Operating system, Docker version, etc?)
Hmm, that's weird. I can't reproduce that problem.
Would you like to try after removing all dependencies and reinstalling?
Could you provide your current development environment? (Operating system, Docker version, etc?)
ok~! But, does the environment affect the problem even if we use docker?
environment
If you use Linux, it can be a problem. but Windows/MacOS Docker uses virtual machines. So, I think not. maybe.
I tested it in another environment, but there was no problem other than the chokidar
compatibility issue. :(
What is printed in Docker logs? Could you try it without -d
flag?
What happened: HMR is not working. It doesn't detect changes, it doesn't hot reload.
What you expected to happen: React development server detect code changes, and hot reload changed module.
How to reproduce it (as minimally and precisely as possible):
docker-compose.dev.yml
.Anything else we need to know?:
npm start
Environment: