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 -
- 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
}
- 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
- Generated www directory is here. www.zip
Do let me know anything else needed. Any help is appreciated.
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 -
{
"foldersToProcess": [
"js",
"css",
"img",
"build"
],
"jpgOptions":{
"quality": 50
},
"jsOptions": {
"compress": {
"drop_console": true
}
},
"cssOptions": {
"keepSpecialComments": 0
},
"alwaysRun": true,
"showErrStack": true
}
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
Do let me know anything else needed. Any help is appreciated.