<b-image src="/.svg">
See original GitHub issueHello. This is my issue: when my attribute src
in my <b-img>
appoint for a svg, the console says 404. But if i set some url for the src
, this works well. If i try with <img>
, the svg load too.
Didn’t work:
<b-img src="../assets/SVG/logo-home.svg" fluid alt="logo-home.svg">
Work:
<b-img src="http://verdao.net/imgs/noticias/moises_30_home.jpg" fluid alt="logo-home.svg"
Work:
<img src="../assets/SVG/logo-home.svg" alt="logo-home.svg">
I am using the Nuxt.js.
I try <b-img src="assets\Ativo2.png" alt="logo-home.svg">
now and not works too, no error, but not render.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Using SVG | CSS-Tricks
SVG is an image format for vector graphics. It literally means Scalable Vector Graphics. Basically, what you work with in Adobe Illustrator.
Read more >Do I use <img>, <object>, or <embed> for SVG files?
In most circumstances, I recommend using the <object> tag to display SVG images. It feels a ...
Read more ><image> - SVG: Scalable Vector Graphics - MDN Web Docs
The <image> SVG element includes images inside SVG documents. It can display raster image files or other SVG files. The only image formats ......
Read more >How to Use SVG Images in CSS and HTML – A Tutorial for ...
SVG images can be written directly into the HTML document using the <svg> </svg> tag. To do this, open the SVG image in...
Read more >The Best Way to Embed SVG on HTML (2021) - Vecta.io
Use <img> tag and embed fonts using Nano. If possible use static compression, and compress your SVG with Brotli for the smallest sizes....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If for some reason you cannot configure the vue-loader
transformToRequire
option, you can use the following webpack workaround:Just make sure you use the
v-bind
syntax forsrc
(i.e. add the:
in front ofsrc
)@tmorehouse I have reinstalled my whole code an I noticed that the vueLoader I now have does not have the query attribute so I had to use the options attribute. See also: https://github.com/nuxt/nuxt.js/issues/956
So it depends on the version, but I am not entirely sure which is which