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

Scanner sample code (lit) does not open and error in console

Open zx5000 opened this issue 1 year ago • 3 comments

After opening the sample code nothing happens on the screen of iPhone or Chrome (macOs) however there is an error on the console.

Uncaught (in promise) HTML Element with id=[object HTMLDivElement] not found reactive-element.js?module:6

See it here. https://greencountrytechnical.com/lit/

zx5000 avatar Jun 21 '23 21:06 zx5000

Yeah i have the same problem.

luckyluggi avatar Jul 05 '23 12:07 luckyluggi

same problem here

ErykKurzepa avatar Aug 25 '23 12:08 ErykKurzepa

Leaving this here for future readers:

The problem can be solved by passing an element in the shadow root directly to the initialiser, which has been made possible through the work of @bilal-elchami in this PR: https://github.com/mebjas/html5-qrcode/pull/697#issuecomment-1723181239

iStefo avatar Feb 14 '24 07:02 iStefo