ngx-scanner
ngx-scanner copied to clipboard
After installing library import error on angular 9
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
Same issue on angular 10.
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.