I am working on an ionic cordova Angular app and am trying to use this plugin but I keep getting the error:
1. If 'webcam' is an Angular component, then verify that it is part of this module.
2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
This is the case even though I added WebcamModule to my app.module.ts file like the docs recommended.
I also tried adding it to the spec.ts file associated with the component I am using the plugin in and also tried changing the schema to "NO_ERRORS_SCHEMA" but still got the same error about it not recognizing the webcam element.
I am working on an ionic cordova Angular app and am trying to use this plugin but I keep getting the error:
This is the case even though I added WebcamModule to my
app.module.ts
file like the docs recommended.app.module.ts
I also tried adding it to the
spec.ts
file associated with the component I am using the plugin in and also tried changing the schema to "NO_ERRORS_SCHEMA" but still got the same error about it not recognizing the webcam element.track-card.component.spec.ts
For reference, I am simply using the sample html used in the live demo and I installed the plugin with
npm install --save ngx-webcam
.track-card.component.html
This is my package.json
Thank you to anyone who can help me resolve this.