Livereload (-l, --livereload) and console not work in 5.0.0 version on emulator
See original GitHub issueDescription:
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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
Hmm… I thought Ionic 3 (using
ionic-app-scripts
) has the toast but Ionic 4 (using@angular/cli
) doesn’t. Gonna close this then! 👍