Skip to content

live reload not working #4312

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

Closed
KMuthusamyms opened this issue Feb 5, 2020 · 8 comments
Closed

live reload not working #4312

KMuthusamyms opened this issue Feb 5, 2020 · 8 comments
Labels

Comments

@KMuthusamyms
Copy link

KMuthusamyms commented Feb 5, 2020

Description:
while I am executing my project with ionic serve or ionic cordova run browser , live reload doesn't work.

My ionic info:

muthusamy@muthusamyms:~/gps$ ionic info

Ionic:

   Ionic CLI                     : 6.0.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 4.11.10
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : 9.0.0 ([email protected])
   Cordova Platforms : android 7.1.4, browser 6.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 9 other plugins)

Utility:

   cordova-res (update available: 0.9.0) : 0.8.1
   native-run                            : 0.3.0

System:

   Android SDK Tools : 25.0.0 (/usr/lib/android-sdk)
   NodeJS            : v12.14.1 (/usr/local/bin/node)
   npm               : 2.15.12
   OS                : Linux 4.15
@ionitron-bot ionitron-bot bot added the triage label Feb 5, 2020
@joselevelsup
Copy link

Same happens with Ionic React.

Ionic:

Ionic CLI : 6.1.0 (~/.nvm/versions/node/v10.19.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 5.0.0

Capacitor:

Capacitor CLI : 1.5.0
@capacitor/core : 1.5.0

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v10.19.0 (~/.nvm/versions/node/v10.19.0/bin/node)
npm : 6.13.4
OS : Linux 5.3

@Defcon0
Copy link

Defcon0 commented Feb 20, 2020

Same here :-( Some days ago it has been working though.

Ionic:

   Ionic CLI                     : 6.1.0 (/home/dev/.nvm/versions/node/v12.16.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.0.0
   @angular-devkit/build-angular : 0.803.25
   @angular-devkit/schematics    : 8.3.25
   @angular/cli                  : 8.3.25
   @ionic/angular-toolkit        : 2.1.2

Cordova:

   Cordova CLI       : 9.0.0 ([email protected])
   Cordova Platforms : android 8.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 9 other plugins)

Utility:

   cordova-res : 0.9.0
   native-run  : 0.3.0

System:

   Android SDK Tools : 26.1.1 (/home/dev/Android/Sdk)
   NodeJS            : v12.16.0 (/home/dev/.nvm/versions/node/v12.16.0/bin/node)
   npm               : 6.13.4
   OS                : Linux 5.3

@Defcon0
Copy link

Defcon0 commented Feb 21, 2020

In my case it has been no error. I just used the http://localhost:8100 - tab already opened by a previous ionic serve session. After I closed it and used the one directly opened by the command line, it worked again :-)

@Defcon0
Copy link

Defcon0 commented Feb 22, 2020

Mhm, the problem reappeared, but persists now :-( Is it possible that structural errors lead to the live reload not working anymore?

@Defcon0
Copy link

Defcon0 commented Feb 23, 2020

Could be helpful. My Chrome devtools show up the following issues:

DevTools failed to parse SourceMap: chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/include.preload.js.map
DevTools failed to parse SourceMap: chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/include.postload.js.map

But the files are valid json files (at least json lint doesn't complain).

@imhoffd
Copy link
Contributor

imhoffd commented Feb 25, 2020

See this issue for livereload support with the Cordova browser platform: #3043

I'm seeing that everyone is on Linux. Perhaps there's an issue in the file watcher for Linux?

@KMuthusamyms
Copy link
Author

I solved this issue by running the ionic serve or ionic cordova run browser -l in sudo mode.

@joselevelsup
Copy link

@KMuthusamyms i don't think that's a problem solved. All because it worked in sudo doesn't mean its a good thing. For me, (as @dwieeb said), it was a file watcher error. I don't remember the command since I copied the command via a different issue. I'll post it later on.

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

No branches or pull requests

4 participants