Zicrael/ngx-tree-dnd

Unable load SVG in production build

Cbhavesh006 opened this issue · 4 comments

Describe the bug
SVG icon unable to load in production mode in angular

To Reproduce
Steps to reproduce the behavior:

  1. Make demo from https://stackblitz.com/edit/ngx-tree-dnd
  2. ng build --prod to make build production
  3. run application on browser(any)
  4. there are not able to see plus,minus,delete button in tree view

Expected behavior
when i see in production build there are missing icon of font-awesome which are useful to manage child and parent of tree.
in console showing to many errors for each icons like :
FontAwesome: Could not find icon with iconName=plus and prefix=fas

Screenshots
Screenshot from 2019-04-12 11-32-34
Screenshot from 2019-04-12 11-33-32

Hello @Cbhavesh006 , sorry for late answer, looks strange.. let me check it.

Solved issue by ref https://github.com/FortAwesome/angular-fontawesome
import { faEdit,faMinus,faPlus,faTimes } from '@fortawesome/free-solid-svg-icons';

Hello @Cbhavesh006, could you please share the step to resolve this issue. I have used your ref url but unable to resolve this issue.

I am facing the same issue..Can u please provide me steps to resolve that