Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229111

Ios --prod build error in ionic 3

$
0
0

I've updated to the latest Ionic and am still having this issue. I don't get this issue with new projects but I am getting it with a project I upgraded from Ionic 2.0

Here's my Ionic Info:

global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 7.0.1
    Ionic CLI        : 3.4.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms               : android 6.2.3 ios 4.3.1
    Ionic Framework                 : ionic-angular 3.4.2

System:

    Node       : v6.9.4
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.2 Build version 8E2002
    ios-deploy : 1.9.0
    ios-sim    : 6.0.0
    npm        : 3.10.10

Here's what verbose printed:

$ ionic cordova build android --prod --release --verbose
[DEBUG] Loading global plugin @ionic/cli-plugin-proxy
[DEBUG] Throwing PLUGIN_NOT_INSTALLED for global @ionic/cli-plugin-proxy
[DEBUG] Loading local plugin @ionic/cli-plugin-cordova
[DEBUG] Loading local plugin @ionic/cli-plugin-ionic-angular
Running app-scripts build: --prod --iscordovaserve --externalIpRequired --nobrowser

[16:25:49]  build prod started ...
[16:25:49]  clean started ...
[16:25:49]  clean finished in 1 ms
[16:25:49]  copy started ...
[16:25:50]  ngc started ...
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of
       date.
[DEBUG] !!! ERROR ENCOUNTERED !!!
Error: Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in /Users/Development/Projects/app/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in /Users/Development/Projects/app/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in /Users/Development/Projects/app/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts
[DEBUG] Error: Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls
        are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving
        symbol Injectable in
        /Users/Development/Projects/app/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/metadata.d.ts,
        resolving symbol OpaqueToken in
        /Users/Development/Projects/app/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts,
        resolving symbol OpaqueToken in
        /Users/Development/Projects/app/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts
        at Error (native)
        at syntaxError
        (/Users/Development/Projects/app/node_modules/@angular/compiler/bundles/compiler.umd.js:1550:34)
        at simplifyInContext
        (/Users/Development/Projects/app/node_modules/@angular/compiler/bundles/compiler.umd.js:23870:23)
        at StaticReflector.simplify
        (/Users/Development/Projects/app/node_modules/@angular/compiler/bundles/compiler.umd.js:23882:13)
        at StaticReflector.annotations
        (/Users/Development/Projects/app/node_modules/@angular/compiler/bundles/compiler.umd.js:23331:41)
        at NgModuleResolver.resolve
        (/Users/Development/Projects/app/node_modules/@angular/compiler/bundles/compiler.umd.js:13883:70)
        at CompileMetadataResolver.getNgModuleMetadata
        (/Users/Development/Projects/app/node_modules/@angular/compiler/bundles/compiler.umd.js:14473:60)
        at addNgModule
        (/Users/Development/Projects/app/node_modules/@angular/compiler/bundles/compiler.umd.js:23050:58)
        at
        /Users/Development/Projects/app/node_modules/@angular/compiler/bundles/compiler.umd.js:23061:14
        at Array.forEach (native)

Viewing all articles
Browse latest Browse all 229111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>