title: Unusual behavior, cannot find name 'Array'
body: <p>I am trying to use the array functionality in angular 7 but I am facing the error saying, <code>cannot find name 'Array'</code>. Similarly, I am not able to use the simple array methods like push and pop.</p>
  
  <p><a href="https://i.stack.imgur.com/HBJ6L.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HBJ6L.png" alt="Here is the sample"></a></p>
  
  <p>Angular7 is not letting me initialize the variable like:</p>
  
  <p><code>list: Array&lt;number&gt; = [1, 2, 3];</code></p>
  
  <p>What is the root cause and how to resolve it?</p>
  
  <p><strong>Updated</strong>: tsconfig.js</p>
  
  <pre><code>{
    "compileOnSave": false,
    "compilerOptions": {
      "baseUrl": "./",
      "outDir": "./dist/out-tsc",
      "sourceMap": true,
      "declaration": false,
      "module": "es2015",
      "moduleResolution": "node",
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "importHelpers": true,
      "target": "es5",
      "typeRoots": [
        "node_modules/@types"
      ],
      "lib": [
        "es2018",
        "dom"
      ]
    }
  }
  </code></pre>
  
  <p>Moreover, code is compiling without error.</p>
  
  <p><a href="https://i.stack.imgur.com/ckdIv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ckdIv.png" alt="code compilation successfull"></a></p>
  
  <p><strong>Mysterious Resolution</strong>: I manage to resolve the compilation error by updating the visual studio code. The issue was particularly with the visual studio code update.</p>