html5-qrcode
html5-qrcode copied to clipboard
Scanner sample code (lit) does not open and error in console
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/
Yeah i have the same problem.
same problem here
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