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:
- Make demo from https://stackblitz.com/edit/ngx-tree-dnd
- ng build --prod to make build production
- run application on browser(any)
- 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
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