51
Views
3
Comments
[QR Code Reactive] Error: "QRCode is undefined"
Question
qr-code-reactive
Reactive icon
Forge asset by Yuri Murakami

This works great in the example project. I struggle however to get it running in my project. 

I even copy the page as is over into the project but the results are the same. I get the error above, and in the development console I see:

QRCode is not defined
ReferenceError: QRCode is not defined


Any idea why?


Annotation20200428124855.png
2021-08-30 15-28-09
Leandro Correa

Hi Eduard,

Same here! Just the demo is working!

I did try to move the module QrCode to my application and nothing...

2019-06-18 22-43-24
Eduard Liebenberger

Just figured it out: I had to copy the "qrcode" script (under Interface/Scripts) across into my project and add it to the required scripts (see screenshot).

Works perfectly fine now :)

Annotation20200428142503.png
2019-02-07 16-31-11
Yuri Murakami

Hello Leandro and Eduard,

I changed the component to include the script in the block so that if someone else tries to copy just the block the script missing will be enough warning:

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.