You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: input.charCodeAt is not a function
at encodeUtf8 (qrcode.js:1417:25)
at new ByteData (qrcode.js:1469:12)
at buildSingleSegment (qrcode.js:1967:18)
at qrcode.js:1992:20
at Array.reduce (<anonymous>)
at Object.fromArray (qrcode.js:1988:20)
at createSymbol (qrcode.js:2393:29)
at Object.create (qrcode.js:2493:12)
at renderCanvas (qrcode.js:2708:25)
at Proxy.fnRenderCode (qrcode.js:37:11)
Based on your finding I came to this (ugly) typescript work-around, because modifying the lib in an existing project is of course a little bit problematic :
When using a Uint8Array object to create my qrcode:
The library fails with the error below.
I traced the error to the function below
When I change it according to the code below, it works:
The text was updated successfully, but these errors were encountered: