You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Angular CLI actually works pretty well with bundling hybrid ng-metadata applications. However the production build does not like 3rd party decorators (angular/angular#14323).
ERROR in legacy\my.module.ts(17,2): Error during template compile of 'MyModule'
Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler in 'NgModule'
'NgModule' references 'NgModule'
'NgModule' references 'NgModule'
'NgModule' is not initialized at ..\ng-metadata\src\core\directives\decorators.ts(233,22).
If possible ng-metadata should find a way to make the compiler happy and enable AOT on Angular components while keeping the Angular.js/ng-metadata components JIT.
The text was updated successfully, but these errors were encountered:
I was able to get an AOT build working on my hybrid application by reimplementing the class decorators as simple functions with a helper function in the actual decorator function. The Angular compiler didn't complain about the parameter decorators.
The Angular CLI actually works pretty well with bundling hybrid ng-metadata applications. However the production build does not like 3rd party decorators (angular/angular#14323).
If possible ng-metadata should find a way to make the compiler happy and enable AOT on Angular components while keeping the Angular.js/ng-metadata components JIT.
The text was updated successfully, but these errors were encountered: