gcoro / react-qrcode-logo

React + Typescript component to generate a QR Code with custom colors and logo
MIT License
490 stars 41 forks source link

This expression is not callable during a build #58

Open asyakalinina opened 3 months ago

asyakalinina commented 3 months ago

./node_modules/react-qrcode-logo/lib/index.tsx:282:24 Type error: This expression is not callable. Type '{ default: QRCodeFactory; stringToBytes(s: string): number[]; stringToBytesFuncs: { [encoding: string]: (s: string) => number[]; }; createStringToBytes(unicodeData: string, numChars: number): (s: string) => number[]; }' has no call signatures.

280 | const logoPadding = this.props.logoPadding ? +this.props.logoPadding : 0; 281 |

282 | const qrCode = qrGenerator(0, ecLevel); | ^ 283 | qrCode.addData(this.utf16to8(value)); 284 | qrCode.make();

gcoro commented 3 months ago

hi, I can't reproduce this error, can you please provide more information about your environment and a code example ?