title: Cannot find module '@ionic-native/camera-preview/ngx'
body: <p>I am trying to install and use <code>camera-preview</code> <a href="https://ionicframework.com/docs/native/camera-preview" rel="nofollow noreferrer">from Ionic Native</a> in the same way as I did for the other plugin <code>camera</code>. While it works for <code>camera</code>, I seem not to be able to redo the same for <code>camera-preview</code>.</p>
  <p>I installed it as follows:</p>
  <pre><code>ionic cordova plugin add cordova-plugin-camera-preview
  npm install --save @ionic-native/camera-preview
  </code></pre>
  <p>And then integrated it in my code as follow:</p>
  <p><strong>app.module.ts</strong></p>
  <pre><code>import { CameraPreview } from '@ionic-native/camera-preview/ngx';
  
  // ...
  
  @NgModule({
    declarations: [AppComponent],
    entryComponents: [],
    imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
    providers: [
      StatusBar,
      SplashScreen,
      { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
      CameraPreview,
    ],
    bootstrap: [AppComponent]
  })
  </code></pre>
  <p><strong>home.page.ts</strong></p>
  <pre><code>import { CameraPreview } from '@ionic-native/camera-preview/ngx';
  
  // ...
  
  export class HomePage {
  
    public image = '';
  
    constructor(private cameraPreview: CameraPreview) {
  
    }
  
  
  }
  </code></pre>
  <p>When running <code>ionic serve -c</code> I receive the errors:</p>
  <blockquote>
  <p>[ng] ERROR in src/app/app.module.ts(12,31): error TS2307: Cannot find module '@ionic-native/camera-preview/ngx'.</p>
  <p>[ng] src/app/home/home.page.ts(2,31): error TS2307: Cannot find module '@ionic-native/camera-preview/ngx'.</p>
  </blockquote>
  <p>What is going on?</p>