Cannot use hot reloading in Docker (continuation of #6722) #8306
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
good first issue
If you are just getting started with Docusaurus, this issue should be a good place to begin.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and 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
The text was updated successfully, but these errors were encountered: