JodusNodus / react-qr-reader

React component for reading QR codes from webcam.
https://jodusnodus.github.io/react-qr-reader
MIT License
1.14k stars 407 forks source link

Help me error selectBestPatterns nobody fix it before (react-qr-reader 3.0.0-beta-1) #362

Open hoaipd opened 11 months ago

hoaipd commented 11 months ago

When I scan QR code, It always return errors Error: More info : at t.selectBestPatterns (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:222393) at t.find (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:218235) at t.detect (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:223801) at t.decode (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:227258) at e.t.decodeBitmap (webpack-internal:///./node_modules/react-qr-reader/dist/esm/index.js:8:355548)

econtigliani commented 11 months ago

I have the same issue

hoaipd commented 11 months ago

I have the same issue

nobody helps :(

avoguga commented 9 months ago

It always return errors, but is working too.

Try to avoid npm with this package, try to use yarn too.

mh-jsx commented 3 months ago

Until the issue got fixed use react-qr-reader@2

or if you have react > 17 Use this instead https://www.npmjs.com/package/react-zxing

Both the libraries are using @zxing/library under the hood.