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

'qrcode' is not defined #28

Open
vincentwinkel opened this issue Oct 5, 2015 · 4 comments
Open

'qrcode' is not defined #28

vincentwinkel opened this issue Oct 5, 2015 · 4 comments

Comments

@vincentwinkel
Copy link

Hi,
When I use your js version on demo page, it works perfectly (event if html5_qrcode_stop() method isn't implemented), but when I use lib/html5-qrcode.min.js as you say, I've an error during initialization :
"Uncaught ReferenceError: qrcode is not defined" and effectively, you attach some callbacks to this variable but I don't find its declaration.
Regards,
Vincent

@VMF214
Copy link

VMF214 commented Oct 14, 2015

me too.exactly same problem. vincent did you found a solution?

@OACDesigns
Copy link
Contributor

you need to include both the libs/jsqrcode-combined.min.js and the lib/html5-qrcode.min.js (in that order).
They're not combined into one file (which I think is probably the case on the demo page).

@OACDesigns
Copy link
Contributor

I guess the build routine should be modified to create a single distribution file with both the jsqrcode src and the html5-qrcode src combined and minified.
I'll create a PR for this

@OACDesigns
Copy link
Contributor

PR created: Pull Request #29
If this gets merged then you'll be able to use it the same way as the demo, just by including the lib/html5-qrcode.min.js on it's own

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

3 participants