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

Watcher not reporting events when used in docker. #148

Open
azhar1038 opened this issue Jul 16, 2023 · 2 comments
Open

Watcher not reporting events when used in docker. #148

azhar1038 opened this issue Jul 16, 2023 · 2 comments

Comments

@azhar1038
Copy link

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"]

Here is my docker-compose.yml

version: '3.8'
services:
  parcel:
    build: .
    volumes:
      - .:/app
      - nodeModules:/app/node_modules

volumes:
  nodeModules:

Same issue also happens with chokidar but chokidar has an option usePolling that uses polling to provide a workaround to this issue.

@azhar1038
Copy link
Author

@OneHoopyFrood
Copy link

I believe I am also experiancing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants