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

ERROR in src/app/zxing-scanner-impl/zxing-scanner/src/lib/zxing-scanner.component.ts(76,27): error TS2345: Argument of type '{ static: boolean; }' is not assignable to parameter of type '{ read?: any; }'. Object literal may only specify known properties, and 'static' does not exist in type '{ read?: any; }'.

Open Priya-mk opened this issue 6 years ago • 2 comments

Describe the bug Hi, i am getting this issue and not able to solve this--ERROR in src/app/zxing-scanner-impl/zxing-scanner/src/lib/zxing-scanner.component.ts(76,27): error TS2345: Argument of type '{ static: boolean; }' is not assignable to parameter of type '{ read?: any; }'. Object literal may only specify known properties, and 'static' does not exist in type '{ read?: any; }'.

i am using angular 6

Screenshots image

  • OS: windows 10
  • Browser : chrome
  • Version : angular 6

Priya-mk avatar Aug 08 '19 06:08 Priya-mk

You forgot to mention what version of the scanner you are using, I believe you're using an ng6 incompatible version BTW.

odahcam avatar Aug 08 '19 10:08 odahcam

Well, for Angular 6 please use v1.2.x or v1.4.x, please test if one of these works with your application. Still, I strongly recommend you to update to Angular 8 and the v2 of the scanner.

odahcam avatar Aug 08 '19 16:08 odahcam