jquery-qrcode icon indicating copy to clipboard operation
jquery-qrcode copied to clipboard

Uncaught ReferenceError: QRErrorCorrectLevel is not defined

Open fotoflo opened this issue 12 years ago • 3 comments

i've followed the directions as mentioned in the readme, but am getting this issue

jQuery.qrcode.js:15Uncaught ReferenceError: QRErrorCorrectLevel is not defined, on line 15

fotoflo avatar Apr 14 '12 05:04 fotoflo

I think i've fixed that by changing line 15:

        correctLevel    : QRErrorCorrectLevel.H,

to correctLevel : "QRErrorCorrectLevel.H",

fotoflo avatar Apr 14 '12 06:04 fotoflo

@fotoflo The fix you listed does not set the QRErrorCorrectLevel as you expect (although it does get rid of the error).

It seems like you would only see this error if you use the src/jquery.qrcode.js file directly instead of the jquery.qrcode.min.js file (which contains both src/jquery.qrcode.js and src/qrcode.js).

See the Makefile for how they are combined.

jwittkoski avatar Jul 16 '12 22:07 jwittkoski

Yeah!

Use jquery.qrcode.min.js,

It's worked!

j717273419 avatar Nov 20 '13 08:11 j717273419