Facing Issue in "Ionic Serve"


#1

Hi,

C:\Users\senthigo\Desktop\ionic\stockapp>ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-por
35729 --dev-logger-port 53703 --nobrowser - Ctrl+C to cancel
[12:38:59] watch started …
[12:38:59] build dev started …
[12:38:59] clean started …
[12:38:59] clean finished in 16 ms
[12:38:59] copy started …
[12:39:00] deeplinks started …
[12:39:00] deeplinks finished in 67 ms
[12:39:00] transpile started …
[12:39:10] transpile finished in 10.16 s
[12:39:10] preprocess started …
[12:39:10] preprocess finished in 15 ms
[12:39:10] webpack started …
[12:39:10] copy finished in 10.93 s
[12:39:42] webpack finished in 32.20 s
[12:39:42] sass started …
[12:39:47] sass finished in 4.57 s
[12:39:47] postprocess started …
[12:39:47] postprocess finished in 32 ms
[12:39:47] lint started …
[12:39:47] build dev finished in 47.29 s
[12:39:47] watch ready in 47.68 s
[12:39:47] dev server running: http://localhost:8100/

[OK] Development server running!
** Local: http://localhost:8100**
** External: http://192.168.1.101:8100**
** DevApp: ionic2-app-base@8100 on SENTHIGO1**

As soon as the server started i am getting the above thing. And app exits. I couldn’t run localhost:8100 in the browser. Need your valuable inputs regarding this issue.


#2

Hi,

I think your port 8100 is used by the other process. So, you can not run on the browser although your build process is finished. Please try this the command line :

ionic serve --all

It will find the available port and run it without any conflicts.

Let me know if your issue is still there.

Thanks,