Related to ERROR in Error encountered resolving symbol values statically
I am currently building a TypeScript library for Angular (using Angular 4). After enabling AOT, I am getting this error.
ERROR in 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 NgModule in /home/.../node_modules/@angular/core/core.d.ts, resolving symbol MyModule in /home/.../dist/contents.module.d.ts, resolving symbol MyModule in /home/.../dist/contents.module.d.ts
Depending on the Angular version I get this other error instead:
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported[...]
Enabling AOT on the Angular project prevented this:
ERROR in MyModule is not an NgModule