qrious icon indicating copy to clipboard operation
qrious copied to clipboard

TypeError: Cannot set property 'QRious' of undefined

Open clawfire opened this issue 3 years ago • 3 comments

Line 22 (global.QRious = factory()); got me the error TypeError: Cannot set property 'QRious' of undefined

My code was a simple

var qrcode = new QRious({
    element: canvas,
    value: "plop",
    size: 300,
    level: "M"
});

clawfire avatar Jun 27 '21 14:06 clawfire

is you canvas variable exist?

ROBERT-MCDOWELL avatar Jun 27 '21 15:06 ROBERT-MCDOWELL

yep

clawfire avatar Jul 14 '21 19:07 clawfire

did you import Qrious class after the html element? replace also canvas by img element

ROBERT-MCDOWELL avatar Jul 14 '21 21:07 ROBERT-MCDOWELL