Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Build prod failed: Error encountered resolving symbol values statically #823

@MathieuNls

Description

@MathieuNls

Short description of the problem:

Prod build fail (iOS & Android). Serve and dev are ok.

What behavior are you expecting?

Steps to reproduce:

  1. git clone https://github.com/Toolwatchapp/tw-mobile
  2. npm install
  3. ionic build ios --prod
[10:23:56]  build prod failed: 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/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/metadata.d.ts,
            resolving symbol OpaqueToken in 
            /Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/opaque_token.d.ts,
            resolving symbol OpaqueToken in 
            /Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/opaque_token.d.ts
[10:23:56]  ionic-app-script task: "build" 
[10:23:56]  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/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/metadata.d.ts,
            resolving symbol OpaqueToken in 
            /Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/opaque_token.d.ts,
            resolving symbol OpaqueToken in 
            /Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/opaque_token.d.ts
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/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in /Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in /Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/tw-core/node_modules/@angular/core/src/di/opaque_token.d.ts
    at SyntaxError.BaseError [as constructor] (/Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:1597:31)
    at new SyntaxError (/Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:1795:20)
    at simplifyInContext (/Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:25783:27)
    at StaticReflector.simplify (/Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:25795:17)
    at StaticReflector.annotations (/Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:25291:64)
    at NgModuleResolver.resolve (/Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:17771:86)
    at CompileMetadataResolver.getNgModuleMetadata (/Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:18272:64)
    at addNgModule (/Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:25053:62)
    at /Users/mathosx/Desktop/toolwatch/tw-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:25064:18
    at Array.forEach (native)

Which @ionic/app-scripts version are you using?

1.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions