# Uncaught SyntaxError: Unexpected identifier on Fresh Install

**URL:** <https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783>\
**Category:** ionic-v3\
**Created:** [November 11, 2017, 8:28am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783 "2017-11-11T08:28:31Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditya\_1027](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aditya_1027/32/109341_2.png) [@aditya\_1027](https://forum.ionicframework.com/u/aditya_1027)\
**Post date:** [November 11, 2017, 8:28am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/1 "2017-11-11T08:28:31Z")

</div>

I have created a new project and when i am trying to run app i am getting blank page with this error:

 ![32 PM](https://global.discourse-cdn.com/ionicframework/original/3X/5/9/597015945fe57164e85d8fccb60b2878ab84035b.png)

Please reply and help me to get rid of this issue

---

<div class="post-metadata">

**Author:** ![HollowCube](https://avatars.discourse-cdn.com/v4/letter/h/e9a140/32.png) [@HollowCube](https://forum.ionicframework.com/u/HollowCube)\
**Post date:** [November 12, 2017, 8:58pm UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/2 "2017-11-12T20:58:14Z")

</div>

I am experiencing this same problem (a white screen is displayed on my Android device) with a freshly installed template created by `ionic start myApp tabs`.

```auto
cli packages: (C:\Users\Kyle\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms : android 6.3.0
    Ionic Framework : ionic-angular 3.9.2

System:

    Node : v8.9.1
    npm : 5.5.1
    OS : Windows 10

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

```

The line of code that throws the syntax error is below:

```auto
Object( __WEBPACK_IMPORTED_MODULE_0__ angular_core__["m" /* Component */])({template:/*ion-inline-start:"C:\Users\Kyle\Desktop\NF2\myApp\src\pages\tabs\tabs.html"*/`<ion-tabs>\n <ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab>\n <ion-tab [root]="tab2Root" tabTitle="About" tabIcon="information-circle"></ion-tab>\n <ion-tab [root]="tab3Root" tabTitle="Contact" tabIcon="contacts"></ion-tab>\n</ion-tabs>\n`/*ion-inline-end:"C:\Users\Kyle\Desktop\NF2\myApp\src\pages\tabs\tabs.html"*/

```

I believe the backtick character ` may be the cause of the syntax error.  
According to [https://caniuse.com/#feat=template-literals](https://caniuse.com/#feat=template-literals), template literals are not supported by Android 4.4.  
If anyone knows a solution to this, please let me know.

---

<div class="post-metadata">

**Author:** ![aditya\_1027](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aditya_1027/32/109341_2.png) [@aditya\_1027](https://forum.ionicframework.com/u/aditya_1027)\
**Post date:** [November 13, 2017, 4:04am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/3 "2017-11-13T04:04:06Z")

</div>

I am also using android 4.4 for testing.

---

<div class="post-metadata">

**Author:** ![aditya\_1027](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aditya_1027/32/109341_2.png) [@aditya\_1027](https://forum.ionicframework.com/u/aditya_1027)\
**Post date:** [November 13, 2017, 11:16am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/5 "2017-11-13T11:16:17Z")

</div>

Installed crosswalk which solved the issue for android 4.4 but messed up on android \> 5

---

<div class="post-metadata">

**Author:** ![MattE](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matte/32/66712_2.png) [@MattE](https://forum.ionicframework.com/u/MattE)\
**Post date:** [November 13, 2017, 11:18am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/6 "2017-11-13T11:18:35Z")

</div>

`viewport-fit` is used for compatibilty with the iPhone X.  
Older browsers (Android 4.4 and such) don’t recognize this and throw an error.

This error shoudn’t impact the ionic application in one way or another.

---

<div class="post-metadata">

**Author:** ![aditya\_1027](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aditya_1027/32/109341_2.png) [@aditya\_1027](https://forum.ionicframework.com/u/aditya_1027)\
**Post date:** [November 13, 2017, 11:29am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/7 "2017-11-13T11:29:51Z")

</div>

We are talking about below error. viewport-fit anyway ignored if it is not iphone X

---

<div class="post-metadata">

**Author:** ![vthilagar](https://avatars.discourse-cdn.com/v4/letter/v/7ba0ec/32.png) [@vthilagar](https://forum.ionicframework.com/u/vthilagar)\
**Post date:** [November 16, 2017, 8:38pm UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/8 "2017-11-16T20:38:57Z")

</div>

Have there been any more updates to this issue? Please help.

I’m experiencing the same error on an android device.

$ ionic info

cli packages: (C:\Users\vthilagar\AppData\Roaming\npm\node\_modules)

```
@ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0

```

global packages:

```
cordova (Cordova CLI) : 7.1.0

```

local packages:

```
@ionic/app-scripts : 3.1.0
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2

```

System:

```
Node : v6.11.0
npm : 4.4.1
OS : Windows 7

```

Environment Variables:

```
ANDROID_HOME : not set

```

Misc:

```
backend : legacy
```

---

<div class="post-metadata">

**Author:** ![aditya\_1027](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aditya_1027/32/109341_2.png) [@aditya\_1027](https://forum.ionicframework.com/u/aditya_1027)\
**Post date:** [November 17, 2017, 5:29am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/9 "2017-11-17T05:29:58Z")

</div>

Created a new project and didn’t get this issue again.

---

<div class="post-metadata">

**Author:** ![vthilagar](https://avatars.discourse-cdn.com/v4/letter/v/7ba0ec/32.png) [@vthilagar](https://forum.ionicframework.com/u/vthilagar)\
**Post date:** [November 17, 2017, 7:50pm UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/10 "2017-11-17T19:50:38Z")

</div>

Thanks - thats what I’m trying now.

---

<div class="post-metadata">

**Author:** ![Stanislav](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@Stanislav](https://forum.ionicframework.com/u/Stanislav)\
**Post date:** [December 4, 2017, 7:51am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/11 "2017-12-04T07:51:57Z")

</div>

same issue on same line in android 4.2

---

<div class="post-metadata">

**Author:** ![leifwells](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/leifwells/32/77387_2.png) [@leifwells](https://forum.ionicframework.com/u/leifwells)\
**Post date:** [December 5, 2017, 10:25pm UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/12 "2017-12-05T22:25:07Z")

</div>

Just found out that this error was caused by a bug that was released with 3.1.0.

We were able to avoid it by running `npm install @ionic/app-scripts@latest` and trying again.

Please note: Your experience may be different that ours. Good luck.

---

<div class="post-metadata">

**Author:** ![MustaRohman](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@MustaRohman](https://forum.ionicframework.com/u/MustaRohman)\
**Post date:** [December 19, 2017, 9:43am UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/13 "2017-12-19T09:43:12Z")

</div>

This worked for me! I had tried using command `ionic run android --device --livereload` on an existing and new project, but came across this the error mentioned above. But this fixed the issue

Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![luis8](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@luis8](https://forum.ionicframework.com/u/luis8)\
**Post date:** [January 31, 2018, 5:34pm UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/14 "2018-01-31T17:34:01Z")

</div>

I find the same problem, does someone solve it?  
Android 4.2.4

---

<div class="post-metadata">

**Author:** ![AliBulut](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/alibulut/32/120133_2.png) [@AliBulut](https://forum.ionicframework.com/u/AliBulut)\
**Post date:** [April 27, 2018, 12:36pm UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/15 "2018-04-27T12:36:20Z")

</div>

I have the same problem. I get this error on my tablet while it’s running normally on mobile devices. How did you solve it?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 10:04pm UTC](https://forum.ionicframework.com/t/uncaught-syntaxerror-unexpected-identifier-on-fresh-install/111783/16 "2021-07-19T22:04:09Z")

</div>

Closed on July 19, 2021, 10:04pm UTC


