title: Why json can be imported easily where as csv cannot in Nodejs Typescript javascript?
body: <p>I was trying to import data from csv file. I tried the following statement: </p>
  
  <pre><code>import * as c from './t.csv';
  </code></pre>
  
  <p>I got the error:  </p>
  
  <blockquote>
    <p>TypeScript error: src/dataset.ts(18,20): Error TS2307: Cannot find module './training.csv'.</p>
  </blockquote>
  
  <p>Then I converted the file into a json file and tried the following code:  </p>
  
  <pre><code>import * as c from './t.json';
  </code></pre>
  
  <p>It worked.<br>
  I wonder why the csv file was not loaded where as json file loaded without any issues.   </p>