title: Import JS file inside node_modules in Angular
body: <p>I have an angular app, to this I am trying to add an npm package called svgedit. It gets installed. But when I try to reference a java-script file it says </p>
  
  <blockquote>
    <p>net::ERR_ABORTED 404 (Not Found)</p>
  </blockquote>
  
  <p>This is how I am trying to reference it in my index.html in the head section,</p>
  
  <pre><code>&lt;script type="module" src="node_modules/svgedit/svgedit-config-es.js"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>I can access this file from within vs code by clicking "ctrl + left mouse". It opens the file properly meaning the reference is proper. But when it runs it gives the above mentioned error in the console. I have also tried switching the type attribute to "text/javascript".</p>
  
  <p>Basically I am trying to integrate this package in my angular app. What is the correct method to go about it.</p>