Did you also import the barcodeScanner in your app.module.ts? This error is telling you that the BarcdeScanner isn’t provided. So double check if you added the BarcodeScanner to your providers in app.module
haha okay glad it’s working now. Just use the CLI generator with ionic g provider myProvider/myService to create it automatically with an @Injectable() decorator.