Home > OS >  Cannot resolve @fontawesome all / fontawesome-free
Cannot resolve @fontawesome all / fontawesome-free

Time:10-26

When I was trying to serve my Project but I got the error as it given as below enter image description here

I apply also some commands on it but it not solved my error. Can anyone help me to solve it

CodePudding user response:

If you are using yarn then put this command

yarn add @fortawesome/fontawesome-free

or

If you are using npm then put this command

yarn add @fortawesome/fontawesome-free

and add @import '@fortawesome/fontawesome-free/css/all.css'; this in app.scss file

or add import '@fortawesome/fontawesome-free/css/all.css'; in app.js file

CodePudding user response:

I simply solve the error by uninstall the googlefonts then again reinstall the google fonts by using following command.In my case I am using yarn so I use

yarn add @fortawesome/fontawesome-free

But in case of user that are using npm they should use following command

npm install --save @fortawesome/fontawesome-free

Also the following link is helpful google solve links for Npm and Yarn

: https://www.google.com/search?q=font awesome add by yaRN&oq=font awesome add by yaRN&aqs=chrome..69i57j33i10i160.11903j0j7&sourceid=chrome&ie=UTF-8

  • Related