-
Notifications
You must be signed in to change notification settings - Fork 23
Doesnt work with Angular 4.0.0-rc.2 aot build #46
Description
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)