-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
hot reload not working #21
Comments
Can you post a small example so I can take a look, please? A .zip containing your project folder or a github link. |
I did not do anything, just create the application quasar init |
It works 100% out of the box. You mention about "index.value" file, but there is no such file.. Hot reload works on |
My apologises, the file is index.vue I'm using Ubuntu 16.04, npm 3.7.4 and node 5.8.0 |
This is really curious. It does not work on your machine only. Verified again with the official Quasar template and it works. Let's go deeper, try an official Vue app template and tell me if hot reload works after changing $ npm install -g vue-cli
$ vue init webpack my-project
$ cd my-project
$ npm install
$ npm run dev Thanks! |
Please reopen this bug if the official Vue app template works. |
There's one more thing. Hot reload does not update the state of any component. What I mean is that it doesn't update the "data" of Vue components. This would defeat the purpose of hot reload which should update everything else BUT maintain the state ("data") of the app. |
Found a solution. Read here: quasarframework/quasar-template-default#10 |
Try adding -- --reset-cache to your run command. |
My hot reload is not working aswell even with a fresh new quasar SPA project. My informations:
What i tried:
I also tried what you suggested with a fresh official Vue app template, and in this case Hot Reload is working just fine... Note: I had to install @quasar/cli with NPM because if i install it with Yarn I got this error: |
Ok so after more research, my issue was coming from WSL2 which have issues tracking changes from a Windows drive filesystem. The solution for me was to add watch poll option in quasar.conf.js :
Hot reload is now working back again :-) |
Had the same problem on a Deb 10 environment and can confirm that this solution works for hot-reloading. |
For whoever else is reading this: use Node v12 LTS. Any newer version of Node is not well supported by webpack v4 in regards to file watchers. |
I use Docker with WSL2 on Windows Home. Hot reloading works for my quasar container, if I add the environment variable
to the docker-compose.yml. |
While using WSL2, your project must be stored at the linux file system. eg: |
Was that issue solved somewhere somehow? Really uncomfortable to fill up all 50 form fields on 10 steps of the stepper component again after every change. Have to add manually |
for me not only for HMR but also the file hadn't changed after saving because my file name was "index.vue", I changed my file name to something else and this problem was solved. |
I'm testing quasar and I'm very excited, but not working hot reload.
My index.value file is changed and nothing happens
Can you help me?
The text was updated successfully, but these errors were encountered: