Skip to content

Update part12c.md#3486

Open
veiniem wants to merge 1 commit intofullstack-hy2020:sourcefrom
veiniem:patch-1
Open

Update part12c.md#3486
veiniem wants to merge 1 commit intofullstack-hy2020:sourcefrom
veiniem:patch-1

Conversation

@veiniem
Copy link

@veiniem veiniem commented Feb 29, 2024

In the material, it is stated that hot reload might not work when running a React development server inside a docker container and making changes to bind mounted files on host machine. At least on my computer, even manually reloading the app on the browser did not make the changes visible. Apparently there is an issue related to the WSL2. microsoft/WSL#6255 (comment)

However the problem can be solved, at least on my computer, by adding environment-variable "WATCHPACK_POLLING=true" on the docker-compose.yml. After adding this to the compose-configuration, even hot reload started to work as expected.

This information should be added to the material so that each student does not have to spend hours figuring it out individually.

@vejol vejol added the part 12 label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants