#Problem font-awesome pro

1 messages · Page 1 of 1 (latest)

clever briar
#

Hello, I imported font-awesome pro with npm (npm install --save @fortawesome/fontawesome-pro) and I wanted to show an icon but it just wont show, it wont show any icon and I dont know what I am doing wrong.
This is the icons I used
<i class="fa-fw fa-gear"></i>
<i class="fas fa-calendar"></i>

I ran npm install && npm run dev

This is a laravel project

This is inside .npmrc
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken={token but is private:)}

clever briar
tepid yacht
#

then I've got nothing. maybe check docs for usage if you missed something.

clever briar
#

I am checking for a whole week now and cant find anything, but thanks for ur time

distant monolith
#

also, have you tried importing and using the components exported by the package

#

the classes won't work if the icons are never loaded, last i remember the npm dist uses a component instead

clever briar
#

No doesnt work

distant monolith
#

right, so you haven't loaded the icons at all then

clever briar
#

Im so confused

distant monolith
#

real quick, are you actually ever importing anything or loading anything in index.html from fontawesome?

#

just installing it doesn't add it to your project

clever briar
#

Ah, well theres the problem

distant monolith
#

did you read the guides that fontawesome provides?

clever briar
clever briar
#

Ah it works now.. just needed to include them in the scss..

tepid yacht