-
Notifications
You must be signed in to change notification settings - Fork 653
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
Live reload doesn't work #2719
Comments
I tried deleting the |
Please show the output of |
Output of ionic serve:
|
|
Any console/network errors? We use a websocket connection to live-reload (and the |
Just learned about Stencil and when using demo found that I have error from node.js ENOSPC (not enough space on the drive but I have more than need) After that I just looked at different issues and found this one:
And after that livereload again works for project that before has no reaction. |
Hi, now it works for me... in my case livereload did not work fine because I haven't imported a Module Components in a right way... maybe a code refactoring is necessary. |
@airstep I will look into whether that can be detected in the Ionic CLI and if we can print a warning about it! Thanks for digging into that. |
@matteobattista how do you find the incorrect Module Components? In my case the live-reload was pretty weird, it work sometime but also not work at sometime. I can't catch the rules. And I didn't find import error because pages work after restart ionic serve. |
@raykin also in my case I didn't find import error and pages works after restart ionic serve. |
@matteobattista thanks for your help. In my case, I only have one module file in components folder. However in providers folder, I have two module files. |
Live reload is not working if there is space in the path.
On changing it to
Live reload works perfectly. I'm on Windows 10 |
I implemented lazy loading and everything started to work fine for me. |
I found it's related to my pug usage. |
Hi @dwieeb When we'll have a solution for this nightmare issue? I'm suffering heavily due to this issue. I don't know why you cannot give a solution for this. Can you share with us any technical difficulties which you have? I think stackblitz live reloader is working really nice. Can't you get something from that? Or is that a problem on my dev environment? Hope you'll give a feedback for this. stackblitz: https://stackblitz.com/ Ionic info:
package.json
ionic serve
|
@Sampath-Lokuge Did you read this issue? Each person offers a solution to their particular problem. I'm sure stackblitz's live-reload probably does work better because everything is entirely integrated. They know exactly when you click "save" in their editor. For us, it's tougher. If there is anything specific you can tell me, I may be able to help. Until then, I don't know the behavior you're seeing and I don't know what you've tried, so I can't provide a magical solution. If you've tried nothing, I think this would be a good place to start. If you give me access to your app, I can debug myself. |
Hi @dwieeb Actually, I have done some changes where I can understand. But none of them worked for me. I really like to give you an access to my dev machine through |
It occurs even project path doesn't include a space. I guess this issue happened on ionic cli all versions with ionic 3, just over 6 months. It seems they are making many changes daily, but never fixed it. Hope they pause version upgrading before fixing this issue. Thank you. |
@sdey0081 I am under the impression live reload is working. Tell me if live reload is working when taking these steps for a new app:
If it is working for a new app, then something broke it in your project and it's impossible for me to know what went wrong without more information or access to your code. Live reload is complex and could break from any number of things. I need a clear set of reproducible steps, and even then it might not be enough, as seen in this issue (spaces in paths??? |
@dwieeb , Thanks for your quick response. This will be the steps to reproduce it:
PS: I am using |
@sdey0081 From what you've described, my guess is you're experiencing an issue with your service worker. To verify, in Chrome debugger, go to Application -> Service Workers and click If you're new to service workers, you can check out these articles: |
Same problem happening on Mac OS X. I have provided details in different thread too. ionic-team/ionic-framework#14431 Please help... Refer to the ionic info outout on above link. I have too have changed inotify.max_user_watches. But is of no use. Removed node modules and npm installed with --save still not working. Regards, |
Looks like @samir-kamble resolved those livereload issues by changing file permissions. |
Unfortunately there are just so many variables at play here. Many reasons why livereload might not be working. We could compile a troubleshooting guide for livereload (see #3370). |
Description:
ionic serve
orionic serve -r
orionic serve --livereload-port
doesnt refresh the build when any HTML or ts file is changedSteps to Reproduce:
Do
ionic serve
and change any html or ts fileExample repo: N/A
My
ionic info
:cli packages: (/usr/local/lib/node_modules)
global packages:
local packages:
System:
The text was updated successfully, but these errors were encountered: