NielsLeenheer / ReceiptPrinterEncoder

Create a set of commands that can be send to any receipt printer that supports ESC/POS or StarPRNT
MIT License
141 stars 13 forks source link

Error: Language not supported by this library #1

Closed tresf closed 1 year ago

tresf commented 1 year ago

Following the README.md, the following occurs.

Proposed fix: #2.

me@computer proj % node tpe-sample.js             
- ~/node_modules/thermal-printer-encoder/src/thermal-printer-encoder.js:24
-      throw new Error('Language not supported by this library');
       ^

Error: Language not supported by this library
    at new ThermalPrinterEncoder (~/node_modules/thermal-printer-encoder/src/thermal-printer-encoder.js:24:13)
    at Object.<anonymous> (/Users/owner/Desktop/tpe/tpe+qz.js:3:15)
    at Module._compile (node:internal/modules/cjs/loader:1239:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1293:10)
    at Module.load (node:internal/modules/cjs/loader:1096:32)
    at Module._load (node:internal/modules/cjs/loader:935:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:84:12)
    at node:internal/main/run_main_module:23:47

Node.js v19.4.0