Open karmac2015 opened 1 year ago
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
QrScanner.scanImage is not a function
You might need to require the default export:
default
const QrScanner = require('qr-scanner').default;
I am trying to use QrScanner in my electron app like the following:
But I have always the followitng error:
QrScanner.scanImage is not a function