Barcode Scanner crashes app after scanning

I have a new Ionic 5 project and installed the barcode scanner plugin just like the documentation. I’m even using the same code sample.
After exiting the scanning screen the application crashes.
No error message, no console log, nothing.

I found many unanswered issues about this. What is wrong with this plugin?