Skip to content

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

@mgm1710

Description

@mgm1710

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions