Zokelion / ngx-bootstrap-treeview

6 stars 7 forks source link

Error import fortawesome #27

Open casper5822 opened 4 years ago

casper5822 commented 4 years ago

Hello it seems there is a digit bug:

ERROR in ../node_modules/ngx-bootstrap-treeview/components/ngx-bootstrap-treeview/ngx-bootstrap-treeview.component.d.ts:3:32 - error TS2307: Cannot find module '@fortawesome/free-solid-svg-icons'.

3 import { IconDefinition } from '@fortawesome/free-solid-svg-icons';

Version: 2.0.0 Angular 8

null4bl3 commented 3 years ago

I get that as well. It is a bit strange to have an icon font as a hard dependency for what the README presents as an optional feature ( icons ).

For anyone experiencing this issue, you can work around by manually installing the @fortawesome dependencies:

npm i @fortawesome/free-solid-svg-icons
npm i @fortawesome/angular-fontawesome
npm i @fortawesome/fontawesome-svg-core