# Can't Serve the ionic conferace app

**URL:** <https://forum.ionicframework.com/t/cant-serve-the-ionic-conferace-app/71747>\
**Category:** ionic-v3\
**Created:** [November 30, 2016, 1:44am UTC](https://forum.ionicframework.com/t/cant-serve-the-ionic-conferace-app/71747 "2016-11-30T01:44:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eureka\_au](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eureka_au/32/105011_2.png) [@eureka\_au](https://forum.ionicframework.com/u/eureka_au)\
**Post date:** [November 30, 2016, 1:44am UTC](https://forum.ionicframework.com/t/cant-serve-the-ionic-conferace-app/71747/1 "2016-11-30T01:44:03Z")

</div>

when I run **ionic serve -l -p 8101** I am receiving the following error message, before it launches blank into the browser:

> 

[12:39:06] **build dev failed: Cannot read property ‘indexOf’ of undefined**  
[12:39:06] copy: Error copying “C:\data\app\mkb\node\_modules\ionic-angular\fonts” to “C:\data\app\mkb\www\assets\fonts”  
[12:39:06] copy finished in 28.95 s  
[12:39:06] watch ready in 29.00 s  
[12:39:06] dev server running: [http://localhost:8101/](http://localhost:8101/)

The copyhng fponts seems to have worked ok too, as the destination directory has the same content as the source directory.

The **build dev failed: Cannot read property ‘indexOf’ of undefined** is the main issue I seem to be facing.  
Many thanks.

**System information:**  
ordova CLI: 6.4.0  
Ionic Framework Version: 2.0.0-rc.3  
Ionic CLI Version: 2.1.13  
Ionic App Lib Version: 2.1.7  
Ionic App Scripts Version: 0.0.46  
ios-deploy version: Not installed  
ios-sim version: Not installed  
OS: Windows 10  
Node Version: v7.2.0  
Xcode version: Not installed

---

<div class="post-metadata">

**Author:** ![toanuranjans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/toanuranjans/32/106566_2.png) [@toanuranjans](https://forum.ionicframework.com/u/toanuranjans)\
**Post date:** [November 30, 2016, 3:41am UTC](https://forum.ionicframework.com/t/cant-serve-the-ionic-conferace-app/71747/2 "2016-11-30T03:41:15Z")

</div>

Can you please try open the terminal or command prompt as an administrator and then run the serve commond…

---

<div class="post-metadata">

**Author:** ![WillGeller](https://avatars.discourse-cdn.com/v4/letter/w/e480ec/32.png) [@WillGeller](https://forum.ionicframework.com/u/WillGeller)\
**Post date:** [November 30, 2016, 5:35am UTC](https://forum.ionicframework.com/t/cant-serve-the-ionic-conferace-app/71747/3 "2016-11-30T05:35:50Z")

</div>

I have no idea why but I was getting the exact same error until I edited and saved a file in /src. Then the CLI in ran webpack and worked. Must be a bug on cli 2.1.13:

ionic-app-scripts serve

[22:31:42] ionic-app-scripts 0.0.46  
[22:31:42] watch started …  
[22:31:42] build dev started …  
[22:31:42] clean started …  
[22:31:42] clean finished in 4 ms  
[22:31:42] copy started …  
[22:31:42] transpile started …  
[22:31:45] build dev failed: Cannot read property ‘indexOf’ of undefined  
[22:31:45] copy: Error copying  
"/Users/will/Documents/Ionic-Lab/tutorialApps/debtTracker/node\_modules/ionic-angular/fonts" to  
"/Users/will/Documents/Ionic-Lab/tutorialApps/debtTracker/www/assets/fonts"  
[22:31:45] copy finished in 2.62 s  
[22:31:45] watch ready in 2.63 s  
[22:31:45] dev server running: [http://localhost:8100/](http://localhost:8100/)

[22:32:10] build started …  
[22:32:11] transpile update started …  
[22:32:11] transpile update finished in 24 ms  
[22:32:11] webpack started …  
[22:32:16] webpack finished in 5.07 s  
[22:32:16] sass started …  
[22:32:18] sass finished in 1.15 s  
[22:32:18] build finished in 7.25 s

---

<div class="post-metadata">

**Author:** ![eureka\_au](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eureka_au/32/105011_2.png) [@eureka\_au](https://forum.ionicframework.com/u/eureka_au)\
**Post date:** [November 30, 2016, 6:09am UTC](https://forum.ionicframework.com/t/cant-serve-the-ionic-conferace-app/71747/4 "2016-11-30T06:09:35Z")

</div>

I’ve tried that and get the same error

---

<div class="post-metadata">

**Author:** ![eureka\_au](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eureka_au/32/105011_2.png) [@eureka\_au](https://forum.ionicframework.com/u/eureka_au)\
**Post date:** [November 30, 2016, 6:43am UTC](https://forum.ionicframework.com/t/cant-serve-the-ionic-conferace-app/71747/5 "2016-11-30T06:43:38Z")

</div>

Yes, that seems to have rebuilt it AOK, no **“build dev failed: Cannot read property ‘indexOf’ of undefined”** error.

So weird :S

Thanks
