Closed wonaGuillermo closed 9 months ago
There is currently an issue with Kits - https://github.com/FortAwesome/angular-fontawesome/issues/423.
Pro packages, like @fortawesome/pro-solid-svg-icons
you should be able to use without issues. If it does not work, please create a minimal reproduction of a problem and push it to the GitHub repo, so I can take a look. To create a minimal reproduction, you can generate a new project using ng new
and then add a minimal code which produces the error. Don't include your authToken in the .npmrc
though.
If there are problems with the kits then what should be the steps to follow, create the .npmrc file and then install angular-fontawesome? The problem is that if you use the free icons and the PRO icons as I import all of them with
constructor(library: FaIconLibrary) {
library.addIconPacks(fab, far, fas);
}
In the same module?
Pro icon packages include all free icons too, so you don't need to import both Pro and Free. It's enough to import only Pro to get all icons.
So as the kits don't work I just create the .npmrc file and add the library with ng add @fortawesome/angular-fontawesome@
Those steps should be sufficient.
Finally I managed to make the PRO icons work with the Angular library for Fontawesome, I leave a commentary of how I did it in case it is helpful for anyone:
1- Create the .nmprc file with the data they give you in the Fontawesome panel to use the token.
2- Install the version of the library for your version of Angular and choose the PRO and Free icons for the Brands.
3- Import into the module as usual.
I think the problem was because I tried to use the kits and installed other libraries that were requested in the documentation.
I bought the PRO version of Fontawesome and I am developing a project with Angular. My problem is that I did everything I found in the documentation but I can only use the free icons.
I am using Angular 16.1.5, in my dependencies I have:
In my module I import the free icons but I can't import the PRO icons.
This is because the PRO icons are exported with the same names and even if I change the free ones for the PRO ones I get an error when trying to compile, it doesn't recognize the 'fas' from @fortawesome/pro-solid-svg-icons, what am I doing wrong? There are not many examples of using PRO icons. I can't add @fortawesome/pro-light-svg-icons and @fortawesome/pro-regular-svg-icons either.
I followed the steps on the "Use Your Kit with a Package Manager" page. And I have my .npmrc file created with my information
Are the kits not usable with @fortawesome/angular-fontawesome 0.13.0? or with any version?
I would appreciate your help.