Skip to content
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

Nextjs hot-reload not working in Docker #70

Open
oddstr13 opened this issue Jan 8, 2025 · 1 comment
Open

Nextjs hot-reload not working in Docker #70

oddstr13 opened this issue Jan 8, 2025 · 1 comment
Assignees

Comments

@oddstr13
Copy link
Contributor

oddstr13 commented Jan 8, 2025

Unable to reproduce on Linux – root cause is likely lack of inotify events across the windows->linux transition layer with WSL(2), see relevant upstream issue here microsoft/WSL#4739

Workaround would be to enable polling mode for the file watcher.

Upstream is unlikely to fix the underlying issue anytime soon.

@oddstr13
Copy link
Contributor Author

oddstr13 commented Jan 8, 2025

@WindShiba Please try setting the following env variable;

WATCHPACK_POLLING: "true"

in nextjs-dev and your new one for crew interface, next to REGISTRATION_HOSTNAME under environment: in the compose.yaml file.


When searching for the issue, I find multiple different suggestions, none of which provide any references or additional information. Only documentation I find on the above mentioned env variable is https://github.com/webpack/watchpack?tab=readme-ov-file#api

@oddstr13 oddstr13 added this to Tasks Jan 8, 2025
@oddstr13 oddstr13 moved this to Ready in Tasks Jan 8, 2025
@oddstr13 oddstr13 added bug Something isn't working windows upstream and removed bug Something isn't working upstream labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready
Development

No branches or pull requests

2 participants