title: ERROR in node_modules/@types/googlemaps/index.d.ts -- A tuple type element list cannot be empty
body: <p>while trying to integrate the <strong><em>angular google maps - agm</em></strong> librarie in my angular project i got this error :</p>
  
  <p>somthing is worng with some configuration or maybe something i have missed i m working with material 6 and angular 6 in this project thanks for your help </p>
  
  <p><strong>in terminal console</strong> </p>
  
  <pre><code>ERROR in node_modules/@types/googlemaps/index.d.ts(63,25): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(72,25): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(94,15): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(100,18): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(106,20): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(115,26): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(121,15): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(130,28): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(155,29): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(167,22): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(176,23): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(185,23): error TS1122: A tuple type element list cannot be empty.
  node_modules/@types/googlemaps/index.d.ts(3308,76): error TS2370: A rest parameter must be of an array type.
  </code></pre>
  
  <p>here is what i did : </p>
  
  <pre><code>npm i @agm/core 
  npm i -D @types/googlemaps 
  ng add @angular-material-extensions/google-maps-autocomplete
  </code></pre>
  
  <p><strong>app.module.ts</strong></p>
  
  <pre><code>import { AgmCoreModule } from '@agm/core';
  import { MatGoogleMapsAutocompleteModule } from '@angular-material-extensions/google-maps-autocomplete';
  
  @NgModule({
    declarations: [AppComponent, ...],
    imports: [
       AgmCoreModule.forRoot({
            apiKey: 'YOUR_KEY',
            libraries: ['places']
          }),
       MatGoogleMapsAutocompleteModule.forRoot(), ...],  
    bootstrap: [AppComponent]
  })
  export class AppModule {
  }
  </code></pre>
  
  <p><strong>mycomponent.component.html</strong></p>
  
  <pre><code>&lt;mat-form-field&gt;
    &lt;mat-label&gt;Address &lt;&lt; using the directive &gt;&gt;&lt;/mat-label&gt;
    &lt;input matInput
         matGoogleMapsAutocomplete
         [country]="de"
         (onAutocompleteSelected)="onAutocompleteSelected($event)"
         (onLocationSelected)="onLocationSelected($event)"&gt;
  &lt;/mat-form-field&gt;
  </code></pre>
  
  <p><strong>mycomponent.component.ts</strong></p>
  
  <pre><code>...
  import {} from 'googlemaps';
  
  
  
  @Component({
    selector : ...
  ...
  </code></pre>
  
  <p><strong>src/index.d.ts</strong></p>
  
  <pre><code>declare module 'googlemaps';
  </code></pre>
  
  <p><strong>tsconfig.app.json</strong></p>
  
  <pre><code>    ...
     "types": [
        "googlemaps"
      ]
     ...
  </code></pre>
  
  <p><strong>package.json</strong></p>
  
  <pre><code> "dependencies": {
      "@agm/core": "^1.1.0",
      "@angular-material-extensions/google-maps-autocomplete": "^2.0.0",
      "@angular/animations": "^6.1.10",
      "@angular/cdk": "^6.1.0",
      "@angular/common": "^6.1.0",
      "@angular/compiler": "^6.1.0",
      "@angular/core": "^6.1.0",
      "@angular/forms": "^6.1.0",
      "@angular/material": "^6.1.0",
      "@angular/material-moment-adapter": "^8.2.3",
      "@angular/platform-browser": "^6.1.0",
      "@angular/platform-browser-dynamic": "^6.1.0",
      "@angular/router": "^6.1.0",
      "googleapis": "28.1.0",
      ...
      "@types/googlemaps": "^3.39.0",
      "rxjs": "^6.5.3",
      "rxjs-compat": "^6.5.3",
      "zone.js": "~0.8.26"
    },
  </code></pre>
  
  <blockquote>
    <p>followed tutorial : <a href="https://www.npmjs.com/package/@angular-material-extensions/google-maps-autocomplete#demo" rel="noreferrer">link to tuto used</a></p>
  </blockquote>
  
  <p><strong>Solution :</strong>
  i don't know why and how but rolling back to an older version worked for me !!
  but that's not the proper solution i looking for</p>