Problem deployment dummy app to my device


#1

Hi there!
I was trying to deploy a really dummy app (based on blank ionic template) in my device (Chinese tablet 7’’, Android 4.4.2). The application only has a home that shows an image as a background. Nothing else, as if it were a wallpaper.
After run cordova run android command, the application started and the debug console showed the following error message: “Uncaught SyntaxError: Unexpected identifier” related to the following line in main.js file:

selector: 'page-home',template:/*ion-inline-start:"/ProjectFolder/src/pages/home/home.html"*/`<ion-header>\n\n</ion-header>\n\n<ion-content>\n  <div class="bg"></div>\n</ion-content>  \n`/*ion-inline-end:"/ProjectFolder/src/pages/home/home.html"*/

After a litle research I realized that was a problem of escaping characters; ionic placed the character ` locking up the html template, when in reality the corresponding character was '. In fact, when I changed that in two lines of the main.js file, the application was shown in the same way that it was shown running the command ionic serve

Does anyone know any explanation for this? Am I doing something wrong or passing something by?


#2

I forgot to post ionic info output:

cli packages: (/usr/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.0.1 

local packages:

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

System:

    Android SDK Tools : 26.0.2
    Node              : v9.3.0
    npm               : 5.5.1 
    OS                : Linux 4.10

Environment Variables:

    ANDROID_HOME : /home/martin/Android/Sdk/

Misc:

    backend : pro