qr-scanner
qr-scanner copied to clipboard
QrScanner scanImage is not a function
I am trying to use QrScanner in my electron app like the following:
const QrScanner = require('qr-scanner');
QrScanner.scanImage(image)......
But I have always the followitng error: QrScanner.scanImage is not a function
You might need to require the default
export:
const QrScanner = require('qr-scanner').default;