Zicrael / ngx-tree-dnd

Angular 7 support, data sortable draggable smart tree.
https://ngx-tree-dnd.stackblitz.io
MIT License
39 stars 11 forks source link

Unable load SVG in production build #46

Closed Cbhavesh006 closed 5 years ago

Cbhavesh006 commented 5 years ago

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

Zicrael commented 5 years ago

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

Cbhavesh006 commented 5 years ago

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

vr-virus commented 4 years ago

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

kalyaniSarode22 commented 4 years ago

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