Closed Hx-Regex closed 3 months ago
Hello @Hx-Regex have you got the issue fixed? I'm trying to print on thermal printers as well, have you got a better solution?
JSX is not supported in a typical JS environment. You need to transpile JSX using Babel, webpack, esbuild, etc.
Issue Description
(im using nextjs 14) I'm trying to work with local IP printers, specifically ECS/POS printers, using the
react-thermal-printer
library. Following the provided example code:However, when running this code in my Node.js environment (v21.6.1), I encounter the following error:
It seems like there's an issue with the syntax when using JSX within a Node.js environment.
Request for Assistance
I'm unsure if I'm using the library incorrectly or if there's a compatibility issue with my setup. Any assistance or guidance on how to properly utilize react-thermal-printer with local IP printers would be greatly appreciated. I'm currently working on a personal project where this functionality is crucial.
Thank you for your time and assistance.