lundi 21 septembre 2020

Getting error by adding a svg file to div.innerHTML

I'm getting this error when I call the chart's render function on a test file.

Error TypeError: 'Symbol(Symbol.toPrimitive)' returned for property 'Symbol(Symbol.toPrimitive)' of object '[object Object]' is not a function at String (<anonymous>)

This is the line that throws the error (on the render function of the component that is being tested) print

Ps.: bha is the svg file and it's being imported by the component

Aucun commentaire:

Enregistrer un commentaire