-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CASL Angular: Function calls are not supported... #270
Comments
Hello, Did you enable Ivy? According to https://medium.com/angular-in-depth/solving-aot-error-in-ngrx-function-calls-are-not-supported-in-decorators-5c337381457a this error is not thrown if you use Ivy |
If you cannot enable Ivy don’t use |
Thank you for the answer. I have Ivy enabled. |
Do you use the latest version of @casl/angular? |
Yes, I am using the latest version. |
OK, I've tried to migrate casl/angular to 9.x and got similar errors during Update: but yes, |
Ohhh... I hate angular with all its overengeenering... I spent the whole day to understand where the issue is. Unexpectedly angular team doesn't recommend to use Ivy for library authors because something was not settled down in its API - https://indepth.dev/the-angular-ivy-guide-for-library-authors/ . Instead they suggest to publish View Engine compatible code and use The long story short. It's angular. It always was like this starting from 1.x. The issue is fixed, enjoy ;) Published in |
Hello,
Recently, when I try to extract i18n messages from source code with command...
...the process interrupts and an error is thrown:
I have
AbilityModule
included inAppModule
just like the documentation shows.I have Angular v9.0.3 running.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: