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

After installing library import error on angular 9

Open BharatMali-peAR opened this issue 3 years ago • 2 comments

ERROR in node_modules/@zxing/ngx-scanner/lib/zxing-scanner.component.d.ts:304:21 - error TS2694: Namespace '"C:/Users/acer/Desktop/Projects/pear-web-app/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

304 static ɵfac: i0.ɵɵFactoryDeclaration<ZXingScannerComponent, never>;

After installing package and importing it giving above error on ng serve in angular 9

BharatMali-peAR avatar Mar 25 '22 11:03 BharatMali-peAR

Same issue on angular 10.

GitSkelly avatar Mar 25 '22 19:03 GitSkelly

Try using 1.0x version of the library it works. I'm using angular 13 and the latest library files and it's working fine.

aviralgoyal avatar Mar 28 '22 08:03 aviralgoyal