[Vuejs]-Invalid self-closing tag in svg

0👍

This warning comes from vue-template-validator. Unfortunately it has no configuration options.

I’m not sure, but it seems that you can turn it off by simply adding lang="html" attribute to the template element (vue-loader uses it only when no lang attribute was specified). In that case vue-loader will use html-loader without validation.

0👍

After cloning your application and running it gave me the same error and it was quite clear that you can you self closing line tag in html5 so just by using

<line x1="1" y1="400" x2="1" y2="416" style="stroke:black;stroke-width:1" ></line>

Resolved the problem

Leave a comment