title: Cannot find type definition file for ‘cordova’ : diagnostic plugin
body: <p>I am unable to build my ionic 3 project after adding “Diagnostic” plugin.</p>
  
  <p>There is a transpile error:</p>
  
  <pre><code>typescript: .....app/plugins/cordova.plugins.diagnostic/cordova.plugins.diagnostic.d.ts, line: 6
          Cannot find type definition file for 'cordova'.
  
     L5:  * "Dangerous" permissions that need to be requested at run-time (Android 6.0/API 23 and above)
     L6:  * See http://developer.android.com/guide/topics/security/permissions.html#perm-groups
     L7:  * @type {Object}
  </code></pre>
  
  <p>How can I resolve this problem? Following is the version information:</p>
  
  <pre><code>"@angular/common": "^4.4.3",
  "@angular/compiler": "^4.4.3",
  "@angular/compiler-cli": "^4.4.3",
  "@angular/core": "^4.4.3",
  "@angular/forms": "^4.4.3",
  "@angular/http": "^4.4.3",
  "cordova": "^7.0.1",
  "cordova-android": "6.3.0",
  "cordova-browser": "^4.1.0",
  "cordova-ios": "^4.5.3",
  "ionic-angular": "^3.7.1",
  </code></pre>
  
  <p>It is working if I comment this line <code>/// &lt;reference types="cordova" /&gt;</code> but this is not the solution i guess</p>