mebjas / html5-qrcode

A cross platform HTML5 QR code reader. See end to end implementation at: https://scanapp.org
https://qrcode.minhazav.dev
Apache License 2.0
4.94k stars 964 forks source link

Dynamic import fails #539

Open Mathias89 opened 2 years ago

Mathias89 commented 2 years ago

Bug Dynamic import fails due missing variable on line var Html5QrcodeScanner = window.__Html5QrcodeLibrary__.Html5QrcodeScanner;

To Reproduce Steps to reproduce the behavior:

  1. import('./.../html5-qrcode.min.js').then(() =>{})
  2. See error

Expected behavior The code should be dynamically imported without error. When loaded as Githubissues.

  • Githubissues is a development platform for aggregating issues.