question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Livereload (-l, --livereload) and console not work in 5.0.0 version on emulator

See original GitHub issue

Description:

Running command ionic run android -l work fine in 4.2.0 version, when I edit a file liveload update app in emulator, but if I install ionic-cli 5.0.0, this not work, load normaly in after install application, but liveload not refresh

Note: liveload in 5.0.0 work fine in localhost (browser) when using ionic-cli@5.0.0

Steps to Reproduce:

  • Install npm i ionic@5.0.0 -g
  • Create a simple project
  • Enter in project folder cd project1 (an example)
  • Execute ionic run android -l
  • Edit a file in projetct1/src folder
  • put in any script file (.ts, .js, others) a console.log('MY TESTE');

Output:

Does not display the output of “console.log”

My ionic info:

Ionic:

   ionic (Ionic CLI) : 5.0.0

System:

   NodeJS : v10.16.0
   npm    : 6.9.0
   OS     : Windows 10

Other Information:

may be related to this problem: https://github.com/ionic-team/ionic-cli/issues/4006

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
imhoffdcommented, Jun 5, 2019

@brcontainer I have confirmed that there is an issue with --consolelogs when using port forwarding. I made a release of the CLI to address this issue (5.0.1). Please update and test: npm i -g ionic@latest.

However, I’m not able to reproduce your claim that livereload is broken on an emulator.

0reactions
imhoffdcommented, Jun 6, 2019

Hmm… I thought Ionic 3 (using ionic-app-scripts) has the toast but Ionic 4 (using @angular/cli) doesn’t. Gonna close this then! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found