can't display my svg file in image icon
I placed my svg file in public folder & use the below command to display my image as an icon:
<q-icon class="text-dark" size="lg" name="img:logo.svg"/>
but the problem is that the icon is not displayed on my page.And I get the below error:
(GET http://localhost:6006/logo.svg 404 (Not Found)).
Does anyone knows what’s the solution?
@deer try this one, works well
@ilia I used the below command in another application while putting my file in public directory & it worked:
<q-icon name="img:/logo.svg" style="font-size: 6em"/>
but it still does not work in the application I explained above, don’t you think if the problem is from the configuration that it can not find the direction of file?
dobbel last edited by dobbel
See here how to use a svg from static assets (public folder)