Uncaught ReferenceError: webpackJsonp is not defined

After latest update to ionic 3.6.0 i am getting error during app run. in chrome console it says Uncaught ReferenceError: webpackJsonp is not defined

i have followed this post https://stackoverflow.com/questions/44988166/ionic-2-referenceerror-webpackjsonp-is-not-defined and added:

 <!-- all code from node_modules directory is here -->
  <script src="build/vendor.js"></script>

but when run ionic cordova run android --prod the script code removed automatically from my index file and getting same error in build.

Ionic info:

cli packages:

    @ionic/cli-plugin-cordova       : 1.5.0 (/var/www/html/bh/node_modules/@ionic/cli-plugin-cordova)
    @ionic/cli-plugin-ionic-angular : 1.4.0 (/var/www/html/bh/node_modules/@ionic/cli-plugin-ionic-angular)
    @ionic/cli-utils                : 1.6.0 (/var/www/html/bh/node_modules/@ionic/cli-utils)
    ionic (Ionic CLI)               : 3.6.0 (/var/www/html/bh/node_modules/ionic)

global packages:

    Cordova CLI : 6.5.0 

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.1.2
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node : v7.5.0
    OS   : Linux 4.4
    npm  : 4.1.2

Package.json

{
  "name": "MyApp",
  "version": "2.2.2",
  "author": "Sohan Yadav",
  "homepage": "http://example.com/",
  "private": true,
  "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/common": "4.1.3",
    "@angular/compiler": "4.1.3",
    "@angular/compiler-cli": "4.1.3",
    "@angular/core": "4.1.3",
    "@angular/forms": "4.1.3",
    "@angular/http": "4.1.3",
    "@angular/platform-browser": "4.1.3",
    "@angular/platform-browser-dynamic": "4.1.3",
    "@ionic-native/camera": "^3.12.1",
    "@ionic-native/core": "3.12.1",
    "@ionic-native/device": "^3.12.1",
    "@ionic-native/in-app-browser": "^3.12.1",
    "@ionic-native/network": "^3.13.1",
    "@ionic-native/onesignal": "^3.12.1",
    "@ionic-native/splash-screen": "3.12.1",
    "@ionic-native/status-bar": "3.12.1",
    "@ionic/storage": "^2.0.1",
    "@ngx-cache/core": "^0.4.0-beta.2",
    "@ngx-translate/core": "^6.0.1",
    "@ngx-translate/http-loader": "0.0.3",
    "@ngx-universal/translate-loader": "^0.4.0-beta.1",
    "crypto-js": "^3.1.9-1",
    "ionic-angular": "^3.6.0",
    "ionic2-rating": "^1.2.2",
    "ionicons": "3.0.0",
    "rxjs": "5.4.0",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.12"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^2.1.3",
    "@ionic/cli-plugin-cordova": "1.5.0",
    "@ionic/cli-plugin-ionic-angular": "1.4.0",
    "ionic": "3.6.0",
    "typescript": "2.3.4"
  },
  "description": "MyApp Application"
}

sily mistake: need to add vendor.js script in src/index.html i was trying to add in www/index.html :roll_eyes:

I HAVE added it to sec/index.html and still see this error.
Why are there sooo many bugs and bad documentations here? I am loosing days, if not weeks because of poor change management, documentation and bugs

After add to src/index.html you can try ionic run or build. it will solve the issue. hence you can post issue if still getting ?

Ionic community working to update documentations and fixing continue basis.

I only have this problem for older Android versions. I get ‘webpackJsonp is not defined’ on Android devices with version 4.4

I have the same problem only on Android 4.4. Any help is appreciated.

same issue on Android 5.0. still searching for solutions

same issue on Android 6.0. still searching for solutions.
someone??