UPDATE: I have uninstalled ionic, cordova and npm. Then re-installed… Now the error No response for http://localhost:35729/livereload.js?snipver=1 found in cache. About to fetch from network... is removed.
But when I use ionic serve on an app it shows, but doesn’t show the changes I make.
I get this error now… Service Worker termination by a timeout timer was canceled because DevTools is attached.
Since that error is browser related, I tried my app in incognito so no extensions can have an affect. Then HOORAH! it worked.
I think Adblocker extension was the cause or one of the extensions.
I’ve had similar issues with ionic serve. has taken me a week to find the solution:
clear browser and hosted app data on chrome. all good again.
my app was working on emulate and, i discovered today, on opera browser, but for the last week or so has been doing really strange things on chrome, like always loading an old app i have long since deleted which didn’t work. whenever i served up another app to the browser, it kept running this old app.
It happened to me now and I solved it by opening the page with my local ip address instead of localhost.
If you are running on Windows you can open the CMD and type ipconfig. This will retrieve your local ip address. Your ip address should be at Adaptador Ethernet Ethernet -> IPv4 Address .
For example, if your ip is 10.1.1.15 you should open http://10.1.1.15:8100/ in your browser so that you can use live reload.
This works for me. But only as a temporary solution. Once I clear old cached app, then the latest app is shown but any future changes are not reloaded. Have started to use Firefox developer tools until I can resolve this.
I had enabled the service work by uncommenting the script tag for it in src/index.html without looking at what it does. Thought I just needed that to get the ‘install to homescreen’ progressive web app functionality for chrome browsers. Turns out service-worker.js caches key assets and they get picked up on rebuild instead of what ionic has just built.