Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

Doesnt work with Angular 4.0.0-rc.2 aot build #46

@alexthebuilder

Description

@alexthebuilder

When running ionic build --prod using Angular 4.0.0-rc.2 the below error is thrown. ionic serve runs with no errors.

[15:12:06] 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
/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/metadata.d.ts,
resolving symbol OpaqueToken in
/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts,
resolving symbol OpaqueToken in
/node_modules/@ionic/cloud-angular/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 /node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in /node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in /node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts
at Error (native)
at syntaxError (/node_modules/@angular/compiler/bundles/compiler.umd.js:1273:19)
at simplifyInContext (/node_modules/@angular/compiler/bundles/compiler.umd.js:16434:25)
at StaticReflector.simplify (/node_modules/@angular/compiler/bundles/compiler.umd.js:16446:15)
at StaticReflector.annotations (/node_modules/@angular/compiler/bundles/compiler.umd.js:15978:45)
at NgModuleResolver.resolve (/node_modules/@angular/compiler/bundles/compiler.umd.js:9521:67)
at CompileMetadataResolver.getNgModuleMetadata (/node_modules/@angular/compiler/bundles/compiler.umd.js:9951:45)
at addNgModule (/node_modules/@angular/compiler/bundles/compiler.umd.js:15825:43)
at /node_modules/@angular/compiler/bundles/compiler.umd.js:15836:16
at Array.forEach (native)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions