Closed viniazvd closed 2 years ago
It seems it's not a vite plugin bug more like a vue feature.
I simply placed the svg in <template>
and I got this.
Seems vue don't compile it
looks like the style tag is not parsed... could it be svg's fault?
any idea how to solve this?
i tested it with vue/cli
+ vue-svg-loader
and the template is still not able to interpret the style within the svg, reproducing the same error.
but loading an svg file, and it loaded normal =(
the problem is that some svg files are loaded, and others are not (like in the example in my first message)
Just delete the style tag in template. If you real want to style this svg, move it in style scope in .vue file
example of svg that is loaded:
example of svg not loading:
vite.config.js