I have found similar questions here on stackoverflow and none of it helped to solve my issue
I have a icons.js file in public where i export various icons to the page