edi9999 / jsqrcode

[deprecated] Lazarsoft's jsqrcode as a node module, object oriented, and with tests
Apache License 2.0
279 stars 63 forks source link

Uncaught TypeError: QrCode is not a constructor #54

Closed modermo closed 6 years ago

modermo commented 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()

modermo commented 6 years ago

Solved, by doing this: import QrCode from 'qrcode-reader';

Instead of: let QrCode = require('qrcode-reader');