Closed modermo closed 6 years ago
I keep getting Uncaught TypeError: QrCode is not a constructor when creating an instance of the QR Code let qr = new QrCode()
Uncaught TypeError: QrCode is not a constructor
let qr = new QrCode()
Solved, by doing this: import QrCode from 'qrcode-reader';
import QrCode from 'qrcode-reader';
Instead of: let QrCode = require('qrcode-reader');
let QrCode = require('qrcode-reader');
I keep getting
Uncaught TypeError: QrCode is not a constructor
when creating an instance of the QR Codelet qr = new QrCode()