title: csvtojson converted data to HTML importing error
body: <p>I have created an array from a csv file and it perfectly displays the data.
  I want to import the data to my html file and visualize the data but it keeps throwing me an error.</p>
  <p><strong>'index.html:1 Uncaught (in promise) TypeError: Failed to resolve module specifier &quot;csvtojson&quot;. Relative references must start with either &quot;/&quot;, &quot;./&quot;, or &quot;../&quot;.'</strong></p>
  <p>I tried everything like using npm link instead of relative path but can not solve this.
  My codes are below. Any advice would be much appreciated.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import csv from "csvtojson";
  
  export default await DataUpdate();
  async function DataUpdate() {
  
  const data = await csv().fromFile("device_index.csv");
    const dataNum = data.length;
    const clientID = [];
    .
    .
    .
    .
   return finalData;
  }
  
  console.log(await DataUpdate()) is below.
  [  [ 1, 31, 1.3975065154936004 ],
    [ 1, 341, 1.4225615583701345 ],
    [ 1, 31, 1.4216059890368478 ],
    [ 1, 124, 1.5863904630723795 ],
    [ 1, 476, 1.3751721386896765 ],]</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script&gt;
   
        document.getElementById("search").addEventListener("click", search);
  
        function search(e) {
          e.preventDefault();
          import("./dataUpdate.js").then((data) =&gt; {
            console.log(data);
          });
        }
        
  &lt;/script&gt;
  
  console.log throw error
  index.html:1 Uncaught (in promise) TypeError: Failed to resolve module specifier "csvtojson". Relative references must start with either "/", "./", or "../".</code></pre>
  </div>
  </div>
  </p>
  <p>nodes output seems perfect.</p>