Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot set property 'QRious' of undefined #128

Open
clawfire opened this issue Jun 27, 2021 · 3 comments
Open

TypeError: Cannot set property 'QRious' of undefined #128

clawfire opened this issue Jun 27, 2021 · 3 comments

Comments

@clawfire
Copy link

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"
});
@ROBERT-MCDOWELL
Copy link

is you canvas variable exist?

@clawfire
Copy link
Author

yep

@ROBERT-MCDOWELL
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants