title: Camera.getPicture is not a function in ionic 3
body: <p>I am using camera plugin to click picture in ionic app, but i am getting the following error</p>
  
  <pre><code>OrdercancelPage.html:24 ERROR TypeError: Object(...) is not a function
  at Camera.getPicture (index.js:125)
  at OrdercancelPage.webpackJsonp.444.OrdercancelPage.getphoto (ordercancel.ts:24)
  at Object.eval [as handleEvent] (OrdercancelPage.html:24)
  at handleEvent (core.js:13547)
  at callWithDebugContext (core.js:15056)
  at Object.debugHandleEvent [as handleEvent] (core.js:14643)
  at dispatchEvent (core.js:9962)
  at core.js:10587
  at HTMLButtonElement.&lt;anonymous&gt; (platform-browser.js:2628)
  at t.invokeTask (polyfills.js:3)
  </code></pre>
  
  <p>My code is </p>
  
  <pre><code>getphoto(){
  this.camera.getPicture({
    quality: 100,
    destinationType: this.camera.DestinationType.FILE_URI,
    encodingType: this.camera.EncodingType.JPEG,
    mediaType: this.camera.MediaType.PICTURE,
    sourceType: this.camera.PictureSourceType.CAMERA,
    targetWidth: 1024,
    targetHeight: 720
  }).then((imageData) =&gt; {
    // imageData is a base64 encoded string
    this.base64Image = "data:image/jpeg;base64," + imageData;
  }, (err) =&gt; {
    console.log(err);
  });
  </code></pre>
  
  <p>}</p>
  
  <p>I am using the plugin </p>
  
  <pre><code>import {   Camera } from '@ionic-native/camera/ngx';
  </code></pre>