E0425 Barcode scanning not supported
Why
scanner.scan reads codes with the platform's own detector: ML Kit on Android, VisionKit or AVFoundation on iOS, and BarcodeDetector on the web. Safari and Firefox have no BarcodeDetector, so a page cannot read codes there, and scan fails loudly with this code rather than showing a camera that never finds anything. scanner.available is false there, before anything is called.
How to fix it
Check scanner.available and offer another way, such as typing the code, where it is false. Chrome and Edge on Android and macOS can scan, as can the iOS and Android apps.
In a terminal
duolith explain E0425