Can't bind to 'device' since it isn't a known property of 'zxing-scanner'.
See original GitHub issueDescribe 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:
- Created 5 years ago
- Comments:19 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok
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