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

grunt serve runs but without effect

Open zapphyre opened this issue 9 years ago • 6 comments

Hi, the tittle is not that much true. The issue I'm having on newly generated blank ionic project is that 'grunt serve' runs without problem for all it's tasks, it even starts "ionic:serve" task but strange is that when I'm dirrected to 'http://localhost:8100/' page says: unable to connect. When I run 'ionic serve' in the folder, the index.html page is on. Strange. Even when I run 'grunt serve --verbose' I see NO line that could report any kind of issue, but without issuing 'ionic serve' explicitly, I can't get server/page on.

Can you suggest what could be the issue or where I should be looking? Thanks!

zapphyre avatar Sep 30 '15 11:09 zapphyre

issue is with grunt-concurrent. to this date the newest version (2.0.3) is not working. need to revert to 1.0.0 https://github.com/diegonetto/generator-ionic/issues/210

zapphyre avatar Sep 30 '15 18:09 zapphyre

Hi, grunt serve command doesn't work for me, using ionic serve, the app broken with some AngularJS error, i followed the instructions on the readme file, may i made a mistake?

newaeonweb avatar Oct 02 '15 19:10 newaeonweb

Is this project alive?. Having same issue here with default scaffolded project.

EDIT: According to https://github.com/diegonetto/generator-ionic/issues/210#issuecomment-112570804 set logConcurrentOutput to false in concurrent.ionic.options and magic will happen.

 concurrent: {
      ionic: {
        tasks: [],
        options: {
          logConcurrentOutput: false
        }

xcafebabe avatar Oct 02 '15 19:10 xcafebabe

same error Running "concurrent:ionic" (concurrent) task Running "ionic:serve" (ionic) task El sistema no puede encontrar la ruta especificada. Warning: Task "ionic:serve" failed. Used --force, continuing.

correasebastian avatar Oct 08 '15 14:10 correasebastian

Thanks @xcafebabe , this works fine!

erictonussi avatar Oct 20 '15 17:10 erictonussi

+1 for this workaround

earcanal avatar Nov 05 '15 14:11 earcanal