question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't bind to 'device' since it isn't a known property of 'zxing-scanner'.

See original GitHub issue

Describe the bug It related to the following line as I have tried to copy your example on plunker.

<zxing-scanner #scanner start="cameraActive" [device]="devicex" (scanSuccess)="handleQrCodeResult($event)"></zxing-scanner>

@NgModule({
  declarations: [
    MyApp, ImageEditPage, ImageCropperComponent
  ],
  imports: [
    BrowserModule,
    CommonModule,
    HttpClientModule,
    FormsModule,
    ZXingScannerModule.forRoot(),
    TranslateModule.forRoot({
      loader: {
        'provide': TranslateLoader,
        'useFactory': (createTranslateLoader),
        'deps': [HttpClient]
      }
    }),
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot() 
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp, 
    ImageEditPage    
  ],
  providers: [
    AlertService,
    AssetService,
    AuthService,
    DeviceService,
    Geolocation,
    GPSService,
    LocationService,
    UserService,
    Camera,
    Crop,
    CameraService,
    TagService,
    Dialogs,
    SplashScreen,
    StatusBar,  
    { 'provide': ErrorHandler, 'useClass': IonicErrorHandler }
  ]
})

ionic 3 android 7.1.1 browser 5.0.3 cordova 8.0.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
thanhphuocdangcommented, Mar 28, 2019

Ok

  1. Google for “wrap Angular app with Cordova” to resolve your current issue
  2. Have a look at Cordova plugins for permission on the native app Good luck!
1reaction
thathamcommented, Mar 28, 2019

I’ve build Angular application first, then, i took production build and copied into cordova “www” folder and build output as apk. Before took apk file, i’ve tried with cordova browser the component worked as expected. But on mobile, it’s a blank screen also it not asks for camera permission also

Read more comments on GitHub >

github_iconTop Results From Across the Web

ZXingScannerModule doesn't seem to be working with Angular
'zxing-scanner' is not a known element: 1. If 'zxing-scanner' is an Angular component, then verify that it is part of this module. 2....
Read more >
Keywords - @zxing/ngx-scanner - npm
High-performance Angular 8 barcode scanner component based on ZXing. ... Start using @zxing/ngx-scanner in your project by running `npm i ...
Read more >
Angular 4 - dynamic template, Can t bind to ngTemplateOutlet ...
Can't bind to 'device ' since it isn't a known property of 'zxing-scanner'. 1. If 'zxing-scanner' is an Angular component and it has...
Read more >
[Debugging] Can't bind to {prop} since it isn't a ... - YouTube
In this video, you'll learn what the error " Can't bind to {prop} since it isn't a know property of {node}" means, how...
Read more >
Angular Error NG8001: is not a known element ... - YouTube
https://readdy.net/Notes/Details/1827Angular Error NG8001: 'mat-progress-spinner' is not a known element:Angular Error is an Angular ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found