title: TypeScript error TS5014: Unexpected token u in JSON at position 0
body: <p>I am trying to compile a .ts to .js</p>
  <p>I have <code>tsconfig.json</code> as below</p>
  <pre><code>{
  &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;es5&quot;,
      &quot;module&quot;: &quot;commonjs&quot;,
      &quot;sourceMap&quot;: true,
      &quot;outFile&quot;: &quot;build/test.js&quot;
  },
  &quot;exclude&quot;: [
      &quot;node_modules&quot;
      ]
  }
  </code></pre>
  <p>below is my <code>package.json</code></p>
  <pre><code>{
      &quot;name&quot;: &quot;test&quot;,
      &quot;version&quot;: &quot;1.0.0&quot;,
      &quot;description&quot;: &quot;&quot;,
      &quot;main&quot;: &quot;index.js&quot;,
      &quot;scripts&quot;: {
          &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
      },
      &quot;author&quot;: &quot;&quot;,
      &quot;license&quot;: &quot;ISC&quot;,
      &quot;dependencies&quot;: {
          &quot;tsc&quot;: &quot;^1.20150623.0&quot;,
          &quot;typescript&quot;: &quot;^2.4.2&quot;
      }
  }
  </code></pre>
  <p>and the auto generated <code>tasks.json</code> looks like below</p>
  <pre><code>{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  &quot;version&quot;: &quot;2.0.0&quot;,
  &quot;tasks&quot;: [
      {
          &quot;type&quot;: &quot;typescript&quot;,
          &quot;tsconfig&quot;: &quot;tsconfig.json&quot;,
          &quot;problemMatcher&quot;: [
              &quot;$tsc&quot;
          ],
          &quot;group&quot;: {
              &quot;kind&quot;: &quot;build&quot;,
              &quot;isDefault&quot;: true
          }
      }]
  }
  </code></pre>
  <p>When I try to run the build task, I am getting the below error</p>
  <pre><code>Executing task: &lt;myprojloc&gt;\node_modules\.bin\tsc.cmd  -p &quot;&lt;myprojloc&gt;\tsconfig.json&quot; &lt;
  
  error TS5014: Failed to parse file '&lt;myprojloc&gt;/tsconfig.json/tsconfig.json': Unexpected token u in JSON at position 0.
  
  Terminal will be reused by tasks, press any key to close it.
  </code></pre>
  <p>What I am doing wrong? Please, note I have added the versions in <code>package.json</code></p>