antonmedv/monkberry

Cannot read property 'type' of null SVG

binjospookie opened this issue · 2 comments

I have it in my monk-template:

<svg aria-hidden="true">
   <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="./images/star.svg#main"></use>
</svg>

When I try to build it I have an error:

(Emitted value instead of an instance of Error) Cannot read property 'type' of null

which is firing by this string

 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="./images/star.svg#main"></use>
{% unsafe '<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="./images/star.svg#main"></use>' %}

works for me :)

Leave only this attrs:

<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg">...</svg>