-
-
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
AbilityModule is not AOT compatible #126
Comments
Hello, Thanks for the issue! I'll check it this weekend |
Thank you, |
I’m currently out of time) finalizing projects on upwork. But yes, I’ll take a look at this today. And there a quick solution than I’ll publish right after the fix |
Could you please send me your version of Angular? |
Actually, we are working on Angular 5 version and we plan to upgrade to Angular 7. |
This is my another leftover :) planned in issue #5 I have already started an article but need some free time to finish it. I expect it to be published till the end of November. You can read Readme of the project for examples of usage https://github.com/stalniy/casl/blob/master/packages/casl-angular/README.md |
the good news: I fixed the issue. Need some time to adapt tests |
In order to build metadata.json & d.ts files by using `ngc` Fixes to #126
fixed in |
Hello,
Trying to use the CASL Angular port, i find that it's not AOT compatible when bundling it in AOT mode.
below the result after running ng serve --aot --port 2800 --locale fr --live-reload false command:
ERROR in Error: Unexpected value 'AbilityModule in ~/node_modules/@casl/angular/index.d.ts' imported by the module 'AppModule in ~/src/app/app.module.ts'. Please add a @NgModule annotation.
The text was updated successfully, but these errors were encountered: