question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Html5QrcodeScanner error - Property 'supportedScanTypes' is missing, but required

See original GitHub issue

Using the sample “Easy Mode” code in Svelte, in VSCode, I received an error of

Argument of type '{ fps: number; qrbox: { width: number; height: number; }; }' is not assignable to parameter of type 'Html5QrcodeScannerConfig'.
  Property 'supportedScanTypes' is missing in type '{ fps: number; qrbox: { width: number; height: number; }; }' but required in type 'Html5QrcodeScannerConfig'.

and it is not compiling.

  • OS: MacOS Monterey 12.3.1
  • VSCode: Version: 1.70.1 (Universal))
  • Version: 2.2.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mebjascommented, Nov 22, 2022

Fixed in v2.3.2 and published.

Please validate.

1reaction
mebjascommented, Oct 30, 2022

Fixed in v2.2.4

Please update the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML5 QR Code Scanner Demo | Minhaz's Blog
clear(); // ^ this will stop the scanner (video feed) and clear the scan area. } html5QrcodeScanner.render(onScanSuccess);. [5] Optional - Handle scan failure?...
Read more >
Request camera access each time my QR scanner runs
value = decodedText; html5QrcodeScanner.clear(); } function onScanFailure(error) { // handle scan failure, usually better to ignore and keep ...
Read more >
mebjas/html5-qrcode (Raised $0.00)
QR code parse error, error = R: No MultiFormat Readers were able to ... Html5QrcodeScanner error - Property 'supportedScanTypes' is missing, but required....
Read more >
mebjas/html5-qrcode release history - changelogs.md
Recent releases and changes to mebjas/html5-qrcode. ... Added support for supportedScanType in Html5QrcodeScanner . This feature was implemented by our ...
Read more >
html5-qrcode
Html5QrcodeScanner error - Property 'supportedScanTypes' is missing, but required · Got "Error happend while scanning context".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found