ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

ionic serve launch a blank browser window/tab

Open ryaa opened this issue 9 years ago • 7 comments

Description:

ionic serve used to build the app, launch the browser and navigate to http://localhost:8100 however recently (may be due to upgrading to the latest ionic cli) it does everything but opens a blank browser window (does not navigate to http://localhost:8100)

Steps to Reproduce:

Just issue ionic serve command from the app directory

Output:

`Alexs-MBP-3:boss811.mobile alexryltsov$ ionic serve Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser - Ctrl+C to cancel [14:34:52] watch started ... [14:34:52] build dev started ... [14:34:52] Proxy added:/api/v1 => https://first.boss811.com/api/v1 [14:34:52] clean started ... [14:34:52] clean finished in 5 ms [14:34:52] copy started ... [14:34:52] deeplinks started ... [14:34:53] deeplinks finished in 1.23 s [14:34:53] transpile started ... [14:35:04] transpile finished in 11.06 s [14:35:04] preprocess started ... [14:35:04] preprocess finished in 1 ms [14:35:04] webpack started ... [14:35:04] copy finished in 12.67 s [14:35:22] webpack finished in 18.18 s [14:35:22] sass started ... [14:35:26] sass finished in 3.76 s [14:35:26] postprocess started ... [14:35:26] postprocess finished in 7 ms [14:35:26] lint started ... [14:35:26] build dev finished in 34.51 s [14:35:26] watch ready in 34.66 s [14:35:26] dev server running: http://localhost:8100/

[OK] Development server running! Local: http://localhost:8100 External: http://192.168.1.121:8100 DevApp: boss811.mobile@8100 on Alexs-MBP-3.Dlink

[14:35:34] lint finished in 8.24 s `

My ionic info:

Alexs-MBP-3:boss811.mobile alexryltsov$ ionic info

cli packages: (/Users/alexryltsov/.nvm/versions/node/v6.9.2/lib/node_modules)

@ionic/cli-utils  : 1.16.0
ionic (Ionic CLI) : 3.16.0

global packages:

cordova (Cordova CLI) : 6.5.0

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : android 6.3.0 ios 4.3.1
Ionic Framework    : ionic-angular 3.7.1

System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.0
ios-sim           : 5.0.13
Node              : v6.9.2
npm               : 5.0.3
OS                : macOS High Sierra
Xcode             : Xcode 9.1 Build version 9B55

Environment Variables:

ANDROID_HOME : /Users/alexryltsov/Library/Android/sdk/

Misc:

backend : legacy

Other Information:

ryaa avatar Nov 07 '17 11:11 ryaa

@ryaa Can you try installing this package: https://www.npmjs.com/package/opn-cli

And then running:

opn https://ionicframework.com

imhoffd avatar Nov 07 '17 15:11 imhoffd

Looks like this was a problem with Chrome browser itself. After I updated it to the latest build the problem has gone. I'm not 100% but it seems that some problems appeared after I upgraded MacOS to the latest High Sierra OS version. Since this is not related to ionic cli i'm closing this issue

@dwieeb , thank you anyway for you help

ryaa avatar Nov 07 '17 16:11 ryaa

Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser - Ctrl+C to cancel [15:52:57] watch started ... [15:52:57] build dev started ... [15:52:57] clean started ... [15:52:57] clean finished in less than 1 ms [15:52:57] copy started ... [15:52:57] deeplinks started ... [15:52:57] deeplinks finished in 16 ms [15:52:57] transpile started ... [15:53:01] transpile finished in 3.63 s [15:53:01] preprocess started ... [15:53:01] preprocess finished in less than 1 ms [15:53:01] webpack started ... [15:53:01] copy finished in 3.85 s [15:53:07] webpack finished in 6.08 s [15:53:07] sass started ... [15:53:08] sass finished in 936 ms [15:53:08] postprocess started ... [15:53:08] postprocess finished in less than 1 ms [15:53:08] lint started ... [15:53:08] build dev finished in 10.86 s [15:53:08] watch ready in 10.94 s [15:53:08] dev server running: http://localhost:8100/

[OK] Development server running! Local: http://localhost:8100 External: http://192.168.1.7:8100 DevApp: tesing@8100 on Lwisl-PC

C:\Users\Lwisl\projects\tesing> i have also same issue after ionic serve ...application is not running on browser its automatically canceled???? i didn't find yet the proper solution for it

Tulika12 avatar Dec 08 '17 10:12 Tulika12

@Tulika12 - are there any error messages in the browser console if you open devtools?

kensodemann avatar Dec 08 '17 12:12 kensodemann

no there is no error @kensodemann

Tulika12 avatar Dec 08 '17 12:12 Tulika12

Failed to load resource: net::ERR_FAILED thumb/ Failed to load resource: net::ERR_FAILED yes it is showing these errors...@kensodemann

Tulika12 avatar Dec 09 '17 10:12 Tulika12

Não sei o motivo, mas execute o comando: npm run ionic:serve

Deve resolver seu problema por enquanto.

deovan avatar Feb 11 '18 01:02 deovan