-
Notifications
You must be signed in to change notification settings - Fork 108
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
Illegal constructor #154
Comments
This version can solve your problem. === |
I guess some framework/library reasons caused our SDK to be loaded repeatedly. |
Thanks for the answer @Keillion I will try to test it today. |
Hello @Keillion it looks like |
Yes, we plan to merge it in 10.6.x. You can just use this beta version. We will support it. |
Thanks for your help :) Closing. |
I keep showing this bug until we fix it in a official release. |
Hello,
Short version: maybe I am just blind after some hours spent on that. There is an annoying "Illegal constructor" appearing and I cannot figure out why.
I am trying to set up the React
VideoCapture
element as mentioned here.It looks like this:
`VideoCapture` element
The
VideoCapture
component is embedded is anotherQRCodeReader
element.`QRCodeReader` element
Until here, everything works well. Using the
QRCodeReader
element, it can scan QRCode and extract the item elements. Nice.The issue happens after that, when I try to embed the
QRCodeReader
element into aQRModal
Element.Elements looks like this
VideoCapture <- QRCodeReader <- QRModal
.We want to use them in a process that is the following:
QRCodeReader
(full page reader).QRModal
, to access the detail of each item, we must scan again using the modal.QRModal
(modal reader) ->fails consistently with the same error
.`QRModal` element
This is throwing a
Type Error: Illegal constructor.
apparently coming fromCameraView.createInstance()
.I also tried to directly shortcut QRModal to directly call another VideoCapture class (
VideoCapture2
is a copy ofVideoCapture
). Same result.The text was updated successfully, but these errors were encountered: