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
Error: bad rs block @ typeNumber:1/errorCorrectLevel:undefined
at Function.QRRSBlock.getRSBlocks (/Users/junior/dev/bot-whatsapp/node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js:261:9)
at QRCode.make (/Users/junior/dev/bot-whatsapp/node_modules/qrcode-terminal/vendor/QRCode/index.js:58:30)
at generate (/Users/junior/dev/bot-whatsapp/node_modules/qrcode-terminal/lib/main.js:35:16)
at /Users/junior/dev/bot-whatsapp/src/main.ts:33:17
at step (/Users/junior/dev/bot-whatsapp/src/main.ts:52:23)
at Object.next (/Users/junior/dev/bot-whatsapp/src/main.ts:33:53)
at fulfilled (/Users/junior/dev/bot-whatsapp/src/main.ts:24:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
The text was updated successfully, but these errors were encountered:
PR #49 is still not merged. Package is apparently abadoned.
If you ran into this issue, the most likely cause is a bug in this package that triggers when it's imported like this: import { generate } from 'qrcode-terminal';. The workaround is to import like this: import qrcode from 'qrcode-terminal';
I am getting this error since I moved my project to Typescript (with CJS was working fine):
generate('1@myDUfOyRFgL650YXw7hqOIh97DiPfCTSWvL/lWY0xk5eMO1/RwU2BJQqyKwKCfy4YQ89jbcJpIs9pA==,y+0gkbGCtydkADbHaPz4BmDHh/Htmvck1+ZJzDANyHA=,39iJKFq9jMqBL3QPcKUY4w==')
Error: bad rs block @ typeNumber:1/errorCorrectLevel:undefined
at Function.QRRSBlock.getRSBlocks (/Users/junior/dev/bot-whatsapp/node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js:261:9)
at QRCode.make (/Users/junior/dev/bot-whatsapp/node_modules/qrcode-terminal/vendor/QRCode/index.js:58:30)
at generate (/Users/junior/dev/bot-whatsapp/node_modules/qrcode-terminal/lib/main.js:35:16)
at /Users/junior/dev/bot-whatsapp/src/main.ts:33:17
at step (/Users/junior/dev/bot-whatsapp/src/main.ts:52:23)
at Object.next (/Users/junior/dev/bot-whatsapp/src/main.ts:33:53)
at fulfilled (/Users/junior/dev/bot-whatsapp/src/main.ts:24:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
The text was updated successfully, but these errors were encountered: