node-escpos/driver

QRImage don't work

TomFuch opened this issue · 1 comments

printer.qrimage("test") don't work and failed with:

UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Buffer

.qrimage("your text", {
              type: "png",
              mode: "dhdw",
              size: 2,
            });

works for me