-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Cannot use hot reloading in Docker (continuation of #6722) #8306
Copy link
Copy link
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiongood first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiongood first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
Issue #6722 has been fixed by passing the --poll CLI option as a watch option to WebPack. However, webpack expects the value to be passed either as a number or boolean. As a result, the cli option which ends up passing as a string errors out.
Just simply trying
gives the following error
Reproducible demo
No response
Steps to reproduce
Locally run the following and see the error
Expected behavior
Ideally the watching should take effect by polling.
Actual behavior
The server doesn't start and errors out.
See webpack/webpack#3048 which mentions similar issue of passing the option via env variable which is treated as a string.
Your environment
No response
Self-service