title: Visual Studio Code: node_modules/@types/googlemaps/index.d.ts' is not a module
body: <p>I followed this tutorial:
  <a href="https://medium.com/@balramchavan/integrating-google-maps-in-angular-5-ca5f68009f29" rel="noreferrer">Integrating Google Maps in Angular 5</a> to get started with Google Maps in my Angular 5 application using Visual Studio Code (version 1.24.1 on Mac). Until very recently everything was working fine but since a few days ago (my guess is an update of VS Code took place in the background) I get an error on the import of Google Maps in Visual Studio Code which never gave me an error before:</p>
  
  <pre><code>import { } from '@types/googlemaps';
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>File 'full_path/node_modules/@types/googlemaps/index.d.ts' is not a module.
  </code></pre>
  
  <p>(note full_path is the complete parent path, not showing here for brevity)</p>
  
  <p>I can see the library located at the correct location in my node_modules directory. Also the library is referenced correctly in my package.json (it's version 3.30.10). I did not run npm update or any other update in between when it was working and when it started giving the error.</p>
  
  <p>When I run "npm start" or "npm run build" it works just fine and the application gets served as it did before (and the Google Map renders perfectly) so it would appear to be a Visual Studio Code problem.</p>
  
  <p>In that sense it's not really blocking me but it would be nice to get the error out of my IDE. Does anyone have any pointers on how to get rid of the error? Thanks!</p>
  
  <p><strong>EDIT</strong>
  I read here: <a href="https://stackoverflow.com/questions/36064697/how-to-install-typescript-typings-for-google-maps/42733315?noredirect=1#comment88303107_42733315">How to install TS typings for Google maps</a> that there are two possible solutions. A triple-slash directive or altering your tsconfig.json. For me only the triple-slash directive worked:</p>
  
  <pre><code>/// &lt;reference path="&lt;relevant path&gt;/node_modules/@types/googlemaps/index.d.ts" /&gt;
  </code></pre>
  
  <p>Would still be interested in a real fix where I can just import the Google Maps types.</p>