diegonetto / generator-ionic

Build hybrid mobile apps using the Ionic Framework
MIT License
1.74k stars 336 forks source link

Grunt serve serves up blank page #223

Open mhartington opened 9 years ago

mhartington commented 9 years ago

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.

niyando commented 9 years ago

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

yogesh-kamble commented 9 years ago

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 grunt-concurrent@1.0.0

webspeaks commented 9 years ago

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

landed1 commented 9 years ago

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..

djett41 commented 9 years ago

this works!!

yeshodhan commented 9 years ago

@niyando @yogesh-kamble thanks. downgrading works.

dinesh-cspl commented 9 years ago

@yogesh-kamble Thanks thanks thanks mate for the solution

abdulwahid24 commented 9 years ago

@yogesh-kamble Thanks a lot man.

JWesorick commented 9 years ago

@yogesh-kamble @niyando Thanks!

razbensimon commented 9 years ago

+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

JoaoGuedes commented 9 years ago

@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 portnumber is passed onto ionic-cli

razbensimon commented 9 years ago

Thank You! @JoaoGuedes