react-qr-reader icon indicating copy to clipboard operation
react-qr-reader copied to clipboard

Beta version causing infinite loop, e is undefined

Open iamunadike opened this issue 2 years ago • 4 comments

Somehow i noticed when the component is mounted it starts to throw the exception Something of what I mean is as shown below:

**``` 613

e is undefined at t.selectBestPatterns (http://localhost:3000/bundle.js:40796:222393) at t.find (http://localhost:3000/bundle.js:40796:218235) at t.detect (http://localhost:3000/bundle.js:40796:223801) at t.decode (http://localhost:3000/bundle.js:40796:227258) at t.decodeBitmap (http://localhost:3000/bundle.js:40796:355548) at t.decodeFromCanvas (http://localhost:3000/bundle.js:40796:355663) at h (http://localhost:3000/bundle.js:40796:362079)


It just keep looping 613 was the last count of the loop before I stopped it maniually

iamunadike avatar Jul 09 '22 17:07 iamunadike

Am also getting the same in console, when webcam start scanning

Prasanthcs29 avatar Jul 13 '22 10:07 Prasanthcs29

Try to use the previous version 2.2.0 (https://github.com/react-qr-reader/react-qr-reader/tree/v2.2.0), work for me.

adrianowy avatar Jul 28 '22 02:07 adrianowy

having same issue

codescrafter avatar Jan 05 '24 10:01 codescrafter

@codescrafter use the last version, but try to use yarn while using the package, apparently the console always will show a error while it cant get a result

avoguga avatar Jan 31 '24 04:01 avoguga