bert icon indicating copy to clipboard operation
bert copied to clipboard

Request clarification on how to install/use fontawesome under 2.2.0?

Open philipmjohnson opened this issue 5 years ago • 4 comments

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:

Screen Shot 2019-04-10 at 10 48 31 AM

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!

philipmjohnson avatar Apr 10 '19 20:04 philipmjohnson

Encountering the same issue!

andsnw avatar Apr 25 '19 06:04 andsnw

I'm also having this issue.

RealHandy avatar Apr 30 '19 16:04 RealHandy

A hacky solution using old dependency:

  1. Install the font-awesome dependency: meteor add fortawesome:fontawesome
  2. Clone the package locally into /packages, replace 'fas' with 'fa' on lines 20-26 in bert.js: image
  3. Remove package and re-install locally: meteor remove themeteorchef:bert; meteor add themeteorchef:bert

Success, icons should now work again.

andsnw avatar Jun 06 '19 05:06 andsnw

For me, the issue was as simple as adding the fontawesome v5 stylesheet link in the head.html of the project.

zachspangler avatar Dec 13 '19 16:12 zachspangler