title: VSCode jsconfig.json gives ts errors Root file specified for compilation
body: <p>I was already looking for an answer here on stackoverflow <a href="https://stackoverflow.com/questions/66868663/jsconfig-json-gives-ts-errors?rq=1">jsconfig.json gives ts errors</a>.
  I tried:</p>
  <ol>
  <li>set</li>
  </ol>
  <pre><code>&quot;exclude&quot;: [&quot;node_modules&quot;]
  </code></pre>
  <p>in jsconfig.json</p>
  <ol start="2">
  <li>set</li>
  </ol>
  <pre><code>&quot;noEmit&quot;: true 
  </code></pre>
  <p>in jsconfig.json in &quot;compilerOptions&quot;</p>
  <ol start="3">
  <li><p>delete node_moduls and package-lock.json and after npm install</p>
  </li>
  <li></li>
  </ol>
  <pre><code>npm install --save @types/dotenv
  </code></pre>
  <p>Nothing helped :(</p>
  <p>I work just with js files or jsx. My OS ubuntu (Focal Fossa). Сan someone explain to me from where the error coming from. And what does it have to do with TypeScript .And how to get rid of it completely? What else can I do besides what I have already done above?</p>
  <p>Full error message is:</p>
  <pre><code>{
      &quot;resource&quot;: &quot;path/jsconfig.json&quot;,
      &quot;owner&quot;: &quot;typescript&quot;,
      &quot;severity&quot;: 8,
      &quot;message&quot;: &quot;File 'path/node_modules/agent-base/dist/src/index' not found.\n  The file is in the program because:\n    Root file specified for compilation&quot;,
      &quot;source&quot;: &quot;ts&quot;,
      &quot;startLineNumber&quot;: 1,
      &quot;startColumn&quot;: 1,
      &quot;endLineNumber&quot;: 1,
      &quot;endColumn&quot;: 2
  }
  </code></pre>