Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic 3 Project Doesn't Run on Android Phone After Minifying TypeScript Files in it #26

Open
mgm1710 opened this issue Jun 14, 2017 · 1 comment

Comments

@mgm1710
Copy link

mgm1710 commented Jun 14, 2017

I am trying to use ionic minify On my Ionic 3 project running on Android device. Minification works just fine, however, when I deploy the apk on android phone it throws following error -

Uncaught TypeError: Right-hand side of 'instanceof' is not callable

Some details that may help to add lights to find a solution are -

  1. This is how my minify-conf.json file look like -

{
"foldersToProcess": [
"js",
"css",
"img",
"build"
],
"jpgOptions":{
"quality": 50
},
"jsOptions": {
"compress": {
"drop_console": true
}
},
"cssOptions": {
"keepSpecialComments": 0
},
"alwaysRun": true,
"showErrStack": true
}

  1. System Information -

Cordova CLI: 6.5.0
Ionic Framework Version: 3.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.7
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v8.0.0
Xcode version: Xcode 8.2.1 Build version 8C1002

  1. Generated www directory is here. www.zip

Do let me know anything else needed. Any help is appreciated.

@mgm1710 mgm1710 changed the title Ionic 2 Project Doesn't Run on Android Phone After Minifying TypeScript Files in it Ionic 3 Project Doesn't Run on Android Phone After Minifying TypeScript Files in it Jun 15, 2017
@baladin
Copy link

baladin commented Sep 28, 2017

I have the same issue.
polyfills.js: Uncaught TypeError: Right-hand side of 'instanceof' is not callable

$ ionic info

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1 

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.0

System:

ios-deploy : 1.9.1 
ios-sim    : 5.0.13 
Node       : v7.4.0
npm        : 4.0.5 
OS         : macOS Sierra
Xcode      : Xcode 8.1 Build version 8B62 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants