-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
File watching doesn't work on Windows machines running the system in a container #7826
Comments
Looking at this some more, I suspect it's just the watching of a couple of specific files that are problematic. It looks like the bulk of the source is watched by
|
I have this issue as well. Changing any file will not recompile the project, leaving me to halt and run dev again.. |
@colinnewell @Karnith I have added this to docs. Will be in next update/release. |
It's just been pointed out to me that there is an alternative way to switch to polling that will probably work for all the watchers (rather than just webpack). You can set an environment variable to tell the chokidar library to poll which should affect both your code and the webpack which uses it too.
|
@colinnewell so would this be in a .env file or directly in quasar.conf.js? I ask as I don't seem to find any references on .env files in the documentation website. |
@Karnith you could set the environment variables in multiple ways. If you're using something like docker-compose you can set them in the config there, or if running as a single container using It looks like there may be a way to do it from the https://quasar.dev/quasar-cli/handling-process-env#Adding-to-process.env |
@colinnewell I tried with quasar env https://quasar.dev/quasar-cli/handling-process-env#Adding-to-process.env, it didn't work. i'll try with docker-compose. The polling setting is working for me in quasar.config, so it's not a high priority. thx. |
If I run
quasar dev
in a container on windows changes in files are not detected.The usual way to work around that is to configure whatever is watching the files to switch to polling.
It looks like Quasar is using
chokidar
which does appear to have a polling option, but it doesn't appear that I can push options to it from thequasar.conf.js
. Ideally I'd like to be able to provide it with configuration via that file.The text was updated successfully, but these errors were encountered: