title: A rest parameter must be of an array type - typescript
body: <p>when i try to create build using ionic <code>cordova build android --prod</code> i am getting errors with too many lines in file <code>typescript: node_modules/@types/node/index.d.ts, line: 6695</code></p>
  
  <blockquote>
    <p>A rest parameter must be of an array type.</p>
    
    <p>L6673:          prependOnceListener(event: "finish", listener: () =>
    void): this;</p>
  </blockquote>
  
  <p>and this cause the failure of building the APK.i am not sure about what is wrong,but without using --prod,it works</p>
  
  <pre><code>&gt;ionic info
  cli packages: (/usr/local/lib/node_modules)
  
      @ionic/cli-utils  : 1.19.1
      ionic (Ionic CLI) : 3.19.1
  
  global packages:
  
      cordova (Cordova CLI) : 8.0.0 
  
  local packages:
  
      @ionic/app-scripts : 3.1.8
      Cordova Platforms  : android 6.4.0 ios 4.5.4
      Ionic Framework    : ionic-angular 3.9.2
  
  System:
  
      Node : v9.2.1
      npm  : 5.5.1 
      OS   : Linux 4.4
  
  Environment Variables:
  
      ANDROID_HOME : not set
  
  Misc:
  
      backend : pro
  </code></pre>