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
(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:
SyntaxError: Unexpected token '<'
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:168:18)
at callTranslator (node:internal/modules/esm/loader:279:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:30)
at async link (node:internal/modules/esm/module_job:76:21)
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: