title: Load SVG file with svg.js
body: <p>I've seen several Questions related to this topic in SO and followed them (<a href="https://stackoverflow.com/questions/15911246/loading-a-svg-file-with-svg-js">Loading a SVG file with svg.js</a>) and no success trying to load a svg file.</p>
  
  <pre><code>__this.canvas = SVG('canvas').size(500, 500);
  $.get('/cuentos/Rapunzel/prueba.svg', function(data) {
       __this.data = data;
       console.log(__this.data);
       __this.canvas.svg(__this.data);
  });
  </code></pre>
  
  <p>__this.canvas is type of <strong>svgjs.Doc</strong> which is imported in the following manner:</p>
  
  <pre><code>import SVG from './node_modules/svg.js/svg.js';
  declare var svgjs: (domElement: HTMLElement) =&gt; svgjs.Library;
  </code></pre>
  
  <p>The error:</p>
  
  <p><a href="https://i.stack.imgur.com/NJ1ib.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NJ1ib.jpg" alt="enter image description here"></a></p>
  
  <p>There's something i'm doing wrong or missing.</p>
  
  <p>Any help?</p>