When trying to print via printer.raw I get the following error:
ReferenceError: waitForResponse is not defined
at Network.execute (/home/dean/pos/print-runner/node_modules/node-thermal-printer/lib/interfaces/network.js:41:37)
at ThermalPrinter.raw (/home/dean/pos/print-runner/node_modules/node-thermal-printer/lib/core.js:452:35)
at file:///home/dean/pos/print-runner/test.js:35:23
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
I'm not sure why no-one else has mentioned this issue. Thinking it might be due to different transpilation.
When trying to print via
printer.raw
I get the following error:I'm not sure why no-one else has mentioned this issue. Thinking it might be due to different transpilation.
In
node-thermal-printer/lib/interfaces/network.js
Above wiatForResponse is not defined anywhere in file. I take it that means it should result in undefined / falsey, but for me it just errors.
Setting it to
{ waitForResponse: false }
fixes the error.Made a fork for my needs