Closed rafaelfgx closed 5 years ago
Hm, will try it out and get back to you with a solution. In the meantime it will be really helpful if you create a stackblitz where this is reproducible :) Also, can you show me the template of this component? I just updated one of my test projects to your version of the CLI and node and I still can't reproduce the issue :(
I will take a look tomorrow. Thanks for the info!
Thank you for your time!
I created a test app:
https://stackblitz.com/edit/angular-ngx-cacheable
The app works online, but if download and run local, the error occurs.
Steps to reproduce:
1) Download the app.
2) Run npm i.
3) Run ng serve.
I have the same issue, but only with AOT, version 1.0.9 works great.
I think it has something to do with the new function expressions I added as part of the refactor, as mentioned here https://angular.io/guide/aot-compiler#metadata-restrictions Will try to resolve those asap. Thanks guys!
Hello!
First I want to thank you for the great work!
I am having the following error in the latest versions (1.1.0, 1.1.1, 1.1.2, 1.1.3) when running ng serve:
Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler in 'Cacheable' 'Cacheable' references 'Cacheable' 'Cacheable' is not initialized at ngx-cacheable\dist\cacheable.decorator.ts(4,22).
If I change to version 1.0.9, it works normally.
I'm using node 11.12.0 and Angular CLI 7.3.6.
Thank you for you attention.