# Ionic serve --lab not working in ionic 2 rc.1

**URL:** <https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112>\
**Category:** ionic-v3\
**Created:** [October 16, 2016, 10:24am UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112 "2016-10-16T10:24:09Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Andersen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/martin_andersen/32/103806_2.png) [@Martin\_Andersen](https://forum.ionicframework.com/u/Martin_Andersen)\
**Post date:** [October 16, 2016, 10:24am UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/1 "2016-10-16T10:24:09Z")

</div>

I am just starting with ionic 2 and having some trouble using ionic’s serve command.

- using chrome: ionic serve -w chrome. right now ionic is not starting any browser.
- ionic serve --lab, the same is happing, it start the server but no UI

---

<div class="post-metadata">

**Author:** ![umardraz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/umardraz/32/100817_2.png) [@umardraz](https://forum.ionicframework.com/u/umardraz)\
**Post date:** [October 16, 2016, 10:27am UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/2 "2016-10-16T10:27:47Z")

</div>

Hello Martin,

Are you sure your ionic serve command finish without any error?

And better if you could try ionic serve only without --lab

---

<div class="post-metadata">

**Author:** ![Martin\_Andersen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/martin_andersen/32/103806_2.png) [@Martin\_Andersen](https://forum.ionicframework.com/u/Martin_Andersen)\
**Post date:** [October 16, 2016, 10:52am UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/3 "2016-10-16T10:52:19Z")

</div>

This is the output from “ionic serve”

Running ‘serve:before’ npm script before serve

> ionic-hello-world@ watch /Users/mha/projects/ionic2/MyFirstApp  
> ionic-app-scripts watch  
> [12:50:53] ionic-app-scripts 0.0.36  
> [12:50:53] watch started …  
> [12:50:53] build dev started …  
> [12:50:53] clean started …  
> [12:50:53] clean finished in 5 ms  
> [12:50:53] copy started …  
> [12:50:53] transpile started …  
> [12:50:53] lint started …  
> [12:50:54] lint finished in 820 ms  
> [12:50:55] transpile finished in 2.02 s  
> [12:50:55] bundle started …  
> [12:50:55] copy finished in 2.06 s  
> [12:51:01] bundle finished in 6.38 s  
> [12:51:01] sass started …  
> [12:51:03] sass finished in 1.24 s  
> [12:51:03] build dev finished in 9.66 s  
> [12:51:03] watch ready in 9.70 s  
> Running live reload server: [http://localhost:35729](http://localhost:35729)  
> Watching: www/ **/\*, !www/lib/** /_, !www/\*\*/_.map  
> √ Running dev server: [http://localhost:8100](http://localhost:8100)  
> Ionic server commands, enter:  
> restart or r to restart the client app from the root  
> goto or g and a url to have the app navigate to the given url  
> consolelogs or c to enable/disable console log output  
> serverlogs or s to enable/disable server log output  
> quit or q to shutdown the server and exit

---

<div class="post-metadata">

**Author:** ![umardraz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/umardraz/32/100817_2.png) [@umardraz](https://forum.ionicframework.com/u/umardraz)\
**Post date:** [October 16, 2016, 10:54am UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/4 "2016-10-16T10:54:22Z")

</div>

Okay, looks like you do not have error in your app syntax

Now can you manually open [http://localhost:8100](http://localhost:8100) in your browser, hope this will work even if ionic is not opening browser automatically.

---

<div class="post-metadata">

**Author:** ![Martin\_Andersen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/martin_andersen/32/103806_2.png) [@Martin\_Andersen](https://forum.ionicframework.com/u/Martin_Andersen)\
**Post date:** [October 16, 2016, 11:10am UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/5 "2016-10-16T11:10:27Z")

</div>

Thanks, but I am missing the lab feature, looks cool

---

<div class="post-metadata">

**Author:** ![flame3](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flame3](https://forum.ionicframework.com/u/flame3)\
**Post date:** [October 16, 2016, 2:28pm UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/6 "2016-10-16T14:28:58Z")

</div>

I found out that if you use sidemenu template the app never loads. This problem has not happened before.  
The command which has problem:  
$ ionic start helloWorld sidemenu --v2

You can try to use this command to start a project instead.

$ionic start helloWorld --v2

It seems this has just been fixed. Check this link [Error when creating ionic 2 sidemenu template app](https://forum.ionicframework.com/t/error-when-creating-ionic-2-sidemenu-template-app/67056/2)

---

<div class="post-metadata">

**Author:** ![Martin\_Andersen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/martin_andersen/32/103806_2.png) [@Martin\_Andersen](https://forum.ionicframework.com/u/Martin_Andersen)\
**Post date:** [October 16, 2016, 3:22pm UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/7 "2016-10-16T15:22:20Z")

</div>

I am using the blank template. But thanks for letting me know.

---

<div class="post-metadata">

**Author:** ![flame3](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flame3](https://forum.ionicframework.com/u/flame3)\
**Post date:** [October 16, 2016, 3:25pm UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/8 "2016-10-16T15:25:12Z")

</div>

Sometimes lack of ionic.config.json is also a reason. It is under the root directory.  
Also make sure that you have run " npm -g install cordova"

---

<div class="post-metadata">

**Author:** ![Martin\_Andersen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/martin_andersen/32/103806_2.png) [@Martin\_Andersen](https://forum.ionicframework.com/u/Martin_Andersen)\
**Post date:** [October 16, 2016, 3:30pm UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/9 "2016-10-16T15:30:07Z")

</div>

> [@flame3](#):
>
> ionic.config.json

Its working now, just not with chrome

{  
“name”: “MyFirstApp”,  
“app\_id”: “12345678”,  
“v2”: true,  
“typescript”: true,  
“defaultBrowser”: “safari”  
}

---

<div class="post-metadata">

**Author:** ![flame3](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flame3](https://forum.ionicframework.com/u/flame3)\
**Post date:** [October 16, 2016, 3:31pm UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/10 "2016-10-16T15:31:19Z")

</div>

Good. What have you done to fix it?

---

<div class="post-metadata">

**Author:** ![Martin\_Andersen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/martin_andersen/32/103806_2.png) [@Martin\_Andersen](https://forum.ionicframework.com/u/Martin_Andersen)\
**Post date:** [October 16, 2016, 3:36pm UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/11 "2016-10-16T15:36:24Z")

</div>

I think I was running ionic serve -f chrome and it must have set chrome to the default browser.  
I was not aware of the ionic config file so thank for pointing me in that direction.

So I simple replaced chrome with safari.

---

<div class="post-metadata">

**Author:** ![flame3](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flame3](https://forum.ionicframework.com/u/flame3)\
**Post date:** [October 16, 2016, 3:37pm UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/12 "2016-10-16T15:37:10Z")

</div>

Good that it helped:)  
I normally use “ionic serve -c --lab” to test apps in my browser.

---

<div class="post-metadata">

**Author:** ![victorcarvalhosp](https://avatars.discourse-cdn.com/v4/letter/v/b782af/32.png) [@victorcarvalhosp](https://forum.ionicframework.com/u/victorcarvalhosp)\
**Post date:** [November 12, 2016, 1:45pm UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/13 "2016-11-12T13:45:36Z")

</div>

It’s not working here too…

after run ‘ionic serve --lab’ opens a page with the error:

Cannot GET /\_\_ion-dev-server/ionic\_lab.html

---

<div class="post-metadata">

**Author:** ![rajputsachin](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rajputsachin](https://forum.ionicframework.com/u/rajputsachin)\
**Post date:** [August 8, 2018, 9:23am UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/14 "2018-08-08T09:23:48Z")

</div>

ionic serve is working but ionic lab is say localhost connection refused

---

<div class="post-metadata">

**Author:** ![rajputsachin](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rajputsachin](https://forum.ionicframework.com/u/rajputsachin)\
**Post date:** [August 8, 2018, 9:26am UTC](https://forum.ionicframework.com/t/ionic-serve-lab-not-working-in-ionic-2-rc-1/67112/15 "2018-08-08T09:26:29Z")

</div>

in my project app id is not show
