bert
bert copied to clipboard
Request clarification on how to install/use fontawesome under 2.2.0?
I've been using Bert Alerts successfully, but noticed that since updating to 2.2.0, I no longer get the icon with an alert:
The associated invocation of Bert Alert is here:
https://github.com/openpowerquality/opq/blob/master/view/app/imports/ui/components/AboutMe.jsx#L134
I installed the fontawesome library with:
meteor npm install --save @fortawesome/fontawesome-free
npm WARN [email protected] requires a peer of leaflet@~1.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@>=0.8.2 <1.0.0 but none is installed. You must install peer dependencies yourself.
+ @fortawesome/[email protected]
added 1 package from 6 contributors and audited 2304 packages in 6.591s
found 1 moderate severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
Your thoughts on how I can diagnose and fix this? Thanks!
Encountering the same issue!
I'm also having this issue.
A hacky solution using old dependency:
- Install the font-awesome dependency:
meteor add fortawesome:fontawesome
- Clone the package locally into
/packages
, replace 'fas' with 'fa' on lines 20-26 inbert.js
: - Remove package and re-install locally:
meteor remove themeteorchef:bert; meteor add themeteorchef:bert
Success, icons should now work again.
For me, the issue was as simple as adding the fontawesome v5 stylesheet link in the head.html of the project.