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

Grunt serve serves up blank page

Open mhartington opened this issue 10 years ago • 12 comments

Grunt serve brings a blank page with an error

This webpage is not available

ERR_CONNECTION_REFUSED

While ionic serve works fine. There are no errors in the build process so I'm not sure where the issue is.

Steps to reproduce:

Create a project without sass, standard plugins, no additional packages.

mhartington avatar Jul 02 '15 18:07 mhartington

Refer #209 Downgrading grunt-concurrent to 1.0.0 should fix this issue

niyando avatar Jul 03 '15 06:07 niyando

I was having the same issue and to resolve I downgraded grunt-concurrent to 1.0.0 sudo npm uninstall grunt-concurrent sudo npm install [email protected]

yogesh-kamble avatar Jul 03 '15 16:07 yogesh-kamble

Thanks, it worked. Will it be fixed with newer versions of concurrent?

webspeaks avatar Jul 09 '15 09:07 webspeaks

Thank you so much for this ! Lost some time hope this info filters into more mainstream as it appears to be an ionic/cordova thing perhaps or at least hard to get a clue on why it fails..

landed1 avatar Jul 13 '15 17:07 landed1

this works!!

djett41 avatar Jul 14 '15 09:07 djett41

@niyando @yogesh-kamble thanks. downgrading works.

yeshodhan avatar Jul 20 '15 22:07 yeshodhan

@yogesh-kamble Thanks thanks thanks mate for the solution

dinesh-cspl avatar Jul 31 '15 13:07 dinesh-cspl

@yogesh-kamble Thanks a lot man.

abdulwahid24 avatar Sep 04 '15 10:09 abdulwahid24

@yogesh-kamble @niyando Thanks!

JWesorick avatar Oct 02 '15 19:10 JWesorick

+1

same issue. thanks to @niyando. it works now. open browser and the application is up and running.

but it on port 8100! ....(why?). it should be 9000 because of 'connect' config in the Gruntfile.json ...am I right?

and one more question. will you update package.json file to have in devDependencies: "grunt-concurrent": "^1.0.0",

?

thanks

razbensimon avatar Oct 05 '15 00:10 razbensimon

@RefactorMan the connect task is used within the coverage task only, check the Gruntfile at the bottom. If you want to run ionic on another port you'll have to run it with grunt serve -p port_number, -p port_number is passed onto ionic-cli

JoaoGuedes avatar Oct 13 '15 23:10 JoaoGuedes

Thank You! @JoaoGuedes

razbensimon avatar Oct 20 '15 19:10 razbensimon