-
Notifications
You must be signed in to change notification settings - Fork 20
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
[AOT] build fails due to private classList in FaComponent and private members in FaDirective #28
Comments
Upgrade to 0.9.0. AOT will work now. At least, it does for me in Angular 4. |
It is not a question of the angular version but of the angularCLI version. Did you test it with angular CLI 1.0.0 (no RC)? For me, it still doesn't work with angular2-fontawesome 0.9.0:
|
…ngularCLI 1.0.0 [Fixes travelist#28]
I used @angular/cli 1.0.0 and angular2-fontawesome 0.9.0 I had no errors or warnings. Everything builds just fine. |
Did you actually use the directive in your code?
…-------- Originalnachricht --------
Betreff: Re: [travelist/angular2-fontawesome] [AOT] build fails due to private classList in FaComponent and private members in FaDirective (#28)
Von: Danny <[email protected]>
An: travelist/angular2-fontawesome <[email protected]>
Cc: Daniel Hilgarth <[email protected]>,Comment <[email protected]>
I used @angular/cli 1.0.0 and angular2-fontawesome 0.9.0
I also used the following command to build: ng build --prod --aot
I had no errors or warnings. Everything builds just fine.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#28 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABIByXgh4o3s8AVFPKWURKgL6X0I9a00ks5ru1XPgaJpZM4MS2Ck>.
|
Yes. This is how I used it: <i fa [name]="'check'"> Edit: That's odd. It doesn't show the closing element in this editor. |
Did you type: "npm install" after you changed the version to 0.9.0 in package.json? |
Sure.
I am still in a Angular2 project. Maybe it does make a difference after all. Couldn't test with Angular 4 because it's not working for me: angular/angular-cli#4551 (comment) |
Sorry for my delayed reply. We are not using angular-cli at all, but I just tested with version 0.9.0 with Angular 4 and AOT builds fine for us now. Thanks! |
Hi,
In angular2-fontawesome 0.8.0 with Angular 2.4.1., the AOT build fails for me due to the following:
fa.component.ts template refers to classList variable which is private, needs to be public for AOT to work.
fa.directive.ts private member variables name -> inverse all also need to be public for AOT to work.
Thanks,
Piyush
The text was updated successfully, but these errors were encountered: