title: TypeScript error: "Cannot find name" in Visual Studio
body: <p>I've seen a lot of threads and discussions about that but I'm not getting to fix the issue. <a href="https://stackoverflow.com/questions/36037962/how-to-get-rid-of-reference-path/36040269?noredirect=1#comment59753460_36040269">This is my post from some days ago</a>.</p>
  
  <p>One of the purposes of <code>typings</code> is to avoid the use of <code>&lt;reference&gt;</code> tags, right?</p>
  
  <p>But if I don't use it, Visual Studio complains:</p>
  
  <p><a href="https://i.stack.imgur.com/yD856.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yD856.png" alt="enter image description here"></a></p>
  
  <p>Visual Studio stops complaining once I reference <code>browser.d.ts</code>.</p>
  
  <p>Here is my <code>tsconfig</code>:</p>
  
  <pre><code>{
    "compilerOptions": {
      "noImplicitAny": false,
      "noEmitOnError": true,
      "removeComments": false,
      "sourceMap": true,
      "target": "es5"
    },
    "files": [
  
    ],
    "exclude": [
      "node_modules",
      "wwwroot"
    ]
  }
  </code></pre>
  
  <p>I also tried removing the <code>"files"</code> property from the <code>tsconfig</code> as suggested <a href="https://stackoverflow.com/questions/36037962/how-to-get-rid-of-reference-path/36040269?noredirect=1#comment59753460_36040269">here</a>, but if I do this, I get compilation error in other typescript files inside the ambient folder of typings. </p>
  
  <p>The code runs and all is fine, but I want to understand if I'm doing something wrong or if it's a Visual Studio problem.</p>