Hi All,
i’m using Ionic DevApp and i have a strange problem.
When i use it on my smartphone all work correctly, but on tablet i have this strange error:
SyntaxError: Unexpected token <
Info:
Ionic Framework: ^3.9.2
Ionic App Scripts: 3.1.0
Angular Core: 5.0.0
Angular Compiler CLI: 5.0.0
Node: 6.11.4
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:56.0) Gecko/20100101 Firefox/56.0
Package.json
{
.....
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/animations": "5.0.0",
"@angular/common": "5.0.0",
"@angular/compiler": "5.0.0",
"@angular/compiler-cli": "5.0.0",
"@angular/core": "5.0.0",
"@angular/forms": "5.0.0",
"@angular/http": "5.0.0",
"@angular/platform-browser": "5.0.0",
"@angular/platform-browser-dynamic": "5.0.0",
"@ionic-native/core": "4.3.3",
"@ionic-native/email-composer": "4.3.3",
"@ionic-native/facebook": "4.3.3",
"@ionic-native/google-plus": "4.3.3",
"@ionic-native/http": "4.3.3",
"@ionic-native/launch-navigator": "4.3.3",
"@ionic-native/onesignal": "4.3.3",
"@ionic-native/splash-screen": "4.3.3",
"@ionic-native/status-bar": "4.3.3",
"@ionic-native/twitter-connect": "4.3.3",
"@ionic/storage": "2.1.3",
"@ngx-translate/core": "^8.0.0",
"@ngx-translate/http-loader": "^2.0.0",
"cordova-android": "^6.2.3",
"cordova-ios": "^4.5.1",
"cordova-plugin-actionsheet": "^2.3.3",
"cordova-plugin-add-swift-support": "^1.7.0",
"cordova-plugin-advanced-http": "^1.6.1",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-dialogs": "^1.3.3",
"cordova-plugin-email-composer": "^0.8.11",
"cordova-plugin-facebook4": "^1.9.1",
"cordova-plugin-file": "^4.3.3",
"cordova-plugin-googleplus": "^5.1.1",
"cordova-plugin-ionic": "^2.0.3",
"cordova-plugin-ionic-webview": "^1.1.14",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-statusbar": "git+https://github.com/apache/cordova-plugin-statusbar.git",
"cordova-plugin-whitelist": "^1.3.1",
"cordova-sqlite-storage": "^2.0.4",
"ionic-angular": "^3.9.2",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"onesignal-cordova-plugin": "^2.2.2",
"rxjs": "5.5.2",
"sw-toolbox": "3.6.0",
"twitter-connect-plugin": "git+https://github.com/chroa/twitter-connect-plugin.git",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.0.5",
"web-animations-js": "^2.3.1",
"zone.js": "0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "^3.1.0",
"typescript": "2.4.2"
},
"description": "An Ionic project",
"cordova": {
"platforms": [
"android",
"ios"
]}
.....
}
Today i’ve updated all to 3.9.2, before i haven’t this error.
Ionic doctor check not detect issue.
Can you help me?
Thanks