After downloading got error "Uncaught SyntaxError: Unexpected end of input" and "Uncaught ReferenceError: webpackJsonp is not defined"


#1

hi

my app download the build from dashboard and can’t do anything else.

because, I saw the vendor.js downloaded really fine from the network information in chrome, but after loading localhost/build/vendor.js missing “]” part.

i tried with 3.1.9 and 3.1.11 of app-script doens’t work both.

my local ionic info is

Ionic:

ionic (Ionic CLI) : 4.0.3 (C:\Users\AmyJun\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.1
@ionic/app-scripts : 3.1.11

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0

System:

Android SDK Tools : 26.1.1
NodeJS : v8.9.4 (C:\Program Files\nodejs\node.exe)
npm : 6.3.0
OS : Windows 10

Environment:

ANDROID_HOME : C:\Users\AmyJun\AppData\Local\Android\Sdk

and dashboard is

$ ionic info
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils : 2.0.0-testing.fa20842b
ionic (Ionic CLI) : 4.0.0-testing.fa20842b

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.11
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.1

System:

NodeJS : v8.11.1
npm : 5.10.0
OS : Linux 4.4

Environment Variables:

ANDROID_HOME : not set

package.json

“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build --prod”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
@angular/animations”: “5.0.3”,
@angular/common”: “5.0.3”,
@angular/compiler”: “5.0.3”,
@angular/compiler-cli”: “5.0.3”,
@angular/core”: “5.0.3”,
@angular/forms”: “5.0.3”,
@angular/http”: “5.0.3”,
@angular/platform-browser”: “5.0.3”,
@angular/platform-browser-dynamic”: “5.0.3”,
@angular/platform-server”: “5.0.3”,
@ionic-native/calendar”: “4.9.0”,
@ionic-native/camera”: “4.9.0”,
@ionic-native/core”: “4.9.0”,
@ionic-native/deeplinks”: “4.9.0”,
@ionic-native/device”: “4.9.0”,
@ionic-native/firebase”: “4.9.0”,
@ionic-native/health”: “4.9.0”,
@ionic-native/http”: “^4.11.0”,
@ionic-native/in-app-browser”: “4.9.0”,
@ionic-native/market”: “4.9.0”,
@ionic-native/pro”: “4.9.0”,
@ionic-native/splash-screen”: “4.9.0”,
@ionic-native/status-bar”: “4.9.0”,
@ionic/pro”: “2.0.1”,
@ionic/storage”: “2.1.3”,
“chart.js”: “^2.7.2”,
“cordova-android”: “7.0.0”,
“cordova-android-support-gradle-release”: “^1.4.4”,
“cordova-ios”: “^4.5.4”,
“cordova-plugin-add-swift-support”: “^1.7.2”,
“cordova-plugin-advanced-http”: “^1.11.1”,
“cordova-plugin-calendar”: “^5.1.2”,
“cordova-plugin-compat”: “^1.2.0”,
“cordova-plugin-customurlscheme”: “^4.3.0”,
“cordova-plugin-device”: “^2.0.2”,
“cordova-plugin-firebase”: “^1.0.5”,
“cordova-plugin-health”: “^1.0.5”,
“cordova-plugin-inappbrowser”: “^3.0.0”,
“cordova-plugin-ionic”: “^5.0.5”,
“cordova-plugin-ionic-keyboard”: “^2.1.2”,
“cordova-plugin-ionic-webview”: “^2.0.2”,
“cordova-plugin-market”: “^1.2.0”,
“cordova-plugin-splashscreen”: “^5.0.2”,
“cordova-plugin-statusbar”: “^2.4.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova-sqlite-storage”: “^2.3.3”,
“ionic-angular”: “3.9.1”,
“ionic-cache”: “^2.0.1”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“moment”: “^2.20.1”,
“rxjs”: “5.5.11”,
“sw-toolbox”: “3.6.0”,
“zone.js”: “0.8.26”
},
“devDependencies”: {
@ionic/app-scripts”: “3.1.11”,
“typescript”: “2.6.2”
},
“cordovaPlugins”: [
“cordova-plugin-device”,
“cordova-plugin-whitelist”,
“cordova-plugin-splashscreen”,
“cordova-plugin-statusbar”
],


#2

Do you really have competing installations of Node and npm? If so, I suggest you fix that first and run npm update, make sure all the packages are consistent and stable.


#3

yeah i have changed some config with app-script and typescript then now it is working.