FortAwesome / angular-fontawesome

Official Angular component for Font Awesome 5+
https://fontawesome.com
MIT License
1.49k stars 152 forks source link

Angular 11 application stops compiling after adding font-awesome #364

Closed swarooprooney closed 2 years ago

swarooprooney commented 2 years ago

Describe the problem

Angular 11 application after adding font-awesome using ng add @fortawesome/angular-fontawesome@ stops compiling

the error I get is Error: node_modules/@fortawesome/angular-fontawesome/config.d.ts:25:21 - error TS2694: Namespace '"C:/Users/swaroop/Repos/non-strict-test/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

static ɵfac: i0.ɵɵFactoryDeclaration<FaConfig, never>;

What did you expect?

The program should continue to work after adding the package

devoto13 commented 2 years ago

Make sure you've used the correct version as suggested in the README (for Angular 11 it is 0.8.x):

$ ng add @fortawesome/angular-fontawesome@0.8.x

If you still have a problem, please provide a repository containing the minimal reproduction of the problem, so I can troubleshoot it.

swarooprooney commented 2 years ago

Thank| you, this solved my issue. I had totally overlooked the compatibility table