I am using Windows 11 and trying to use @parcel/watcher in a docker container. I have mounted my files so that if I change anything locally it triggers the watcher but it is not working. Strangely if I change something in a mounted file through Docker Desktop, a delete and create events are fired.
Here is my Dockerfile
FROM node:alpine
WORKDIR /app
COPY ./package*.json /app
RUN npm install
COPY . .
CMD ["npm", "start"]
I am using Windows 11 and trying to use
@parcel/watcher
in a docker container. I have mounted my files so that if I change anything locally it triggers the watcher but it is not working. Strangely if I change something in a mounted file through Docker Desktop, adelete
andcreate
events are fired.Here is my
Dockerfile
Here is my
docker-compose.yml
Same issue also happens with
chokidar
butchokidar
has an optionusePolling
that uses polling to provide a workaround to this issue.