ngx-scanner icon indicating copy to clipboard operation
ngx-scanner copied to clipboard

property 'forRoot' does not exist on type 'typeof ZXingScannerModule'.?

Open jnjaga24 opened this issue 6 years ago • 1 comments

My angular cli version details Angular CLI: 6.2.9 Node: 8.9.1 OS: win32 x64.

On installing the package and including

// Common imports import { NgModule /* , ... */ } from '@angular/core';

// Import the package's module import { ZXingScannerModule } from '@zxing/ngx-scanner';

@NgModule({ declarations: [ /* AppComponent ... */ ], imports: [

    // BrowserModule,
    // ...

    // ZXing scanner module
    ZXingScannerModule.forRoot(),

    // another imports...
],
// ...

}) export class AppModule { }

jnjaga24 avatar Sep 19 '19 09:09 jnjaga24

It does not exist and must be removed from docs. Just avoid it.

odahcam avatar Sep 19 '19 12:09 odahcam