Base solution for your next web application
Open Closed

Issue Integrating fontawesome pro #8723


User avatar
0
sumitshah created

Hi Team,

We have acquired license for Fontawesome pro and trying to configure the same in the aspnetzero application. We are using angular 8 - .netcore version(aspnetzero 7.2)

Below are the steps we have followed so far:

  1. Created an .npmrc file in the root directory of the host project where we have the package.json file and added the below lines along with valid token: @fortawesome:registry=https://npm.fontawesome.com/ //npm.fontawesome.com/:_authToken=XXXXXXXX-XXXX
  2. Next installed the latest version of fontawesome using yarn yarn add @fortawesome/fontawesome-pro
  3. Verified the package.json and the fortawesome version is the latest i.e. 5.13
  4. In the angular.json added the below line below the metronic theme "node_modules/@fortawesome/fontawesome-pro/css/all.css",
  5. Later in one of the component.html file tried using/ adding an icon from the font awesome pro version <i class="fal fa-camera"></i>

We are unable to see the icon on the UI, inspecting the element it seems it is still using the metronic class from the vendor.bundle.css

Could you please help me out with this as we are stuck with this and we need to implement some pro icons in our application.


7 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @sumitshah That might be same issue. Can you please check that https://github.com/aspnetzero/aspnet-zero-core/issues/2710

  • User Avatar
    0
    sumitshah created

    Hi demirmusa,

    Thank you for the reply but the link is giving me 404 - Page not found error.

  • User Avatar
    0
    maliming created
    Support Team

    hi sumitshah

    https://aspnetzero.com/LicenseManagement

    You can invite anyone to become a member of the ASP.NET Zero organization using their GitHub username. And they can access the ASP.NET Zero private GitHub repositories.

  • User Avatar
    0
    sumitshah created

    Getting the below error after trying to login

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sumitshah

    You should login with your license owner's user or ask him/her to do it for you. (username: Jayesh)

  • User Avatar
    0
    sumitshah created

    Thank you,

    I was able to view the private post and update the fonts as mentioned in the post. The things are working as desired and am able to use the fontawesome pro fonts in my application.

    Am sure you guys are working on this and soon we would get a fix out so that there is no manual-copy-paste intervention required.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Great to hear that :)