Skip to content
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

lodash / underscore not working on pages with html5-qrcode added #284

Closed
joshbmarshall opened this issue Aug 27, 2021 · 7 comments
Closed

Comments

@joshbmarshall
Copy link

Describe the bug
Using html5-qrcode in a html5 application, any lodash calls like _.debounce fail with an unknown function error.

To Reproduce
Steps to reproduce the behavior:

  1. Add html5-qrcode to a page that also has lodash
  2. try to call _.debounce() function
  3. See error in console

Expected behavior
Both lodash and html5-qrcode to co-exist

Example
See jsfiddle https://jsfiddle.net/joshmarshall/v51z90w8/7/

@janfschmidt
Copy link

I have the same issue: Cannot use _.template() when adding html5-qrcode

@mebjas
Copy link
Owner

mebjas commented Oct 16, 2021

@janfschmidt I tried to run the attached jsfiddle link, I can see the console error - but rest of the things seem to work fine. Can you confirm if there is issue beyond the error seen on console?

@joshbmarshall
Copy link
Author

@mebjas the qrcode scanner keeps working BUT the lodash functions do not

@mebjas
Copy link
Owner

mebjas commented Oct 17, 2021

Working on a fix

@mebjas
Copy link
Owner

mebjas commented Oct 17, 2021

Can you try with latest version of the code - https://unpkg.com/[email protected]/html5-qrcode.min.js

^ I tried, seemed to work for me.

(I am still verifying different components and will update documentations later.)

@janfschmidt
Copy link

I can confirm that it is now working with _.template() in my code :-)

@mebjas
Copy link
Owner

mebjas commented Oct 21, 2021

Thanks for confirming, closing

@mebjas mebjas closed this as completed Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants