lsongdev / node-escpos

🖨️ ESC/POS Printer driver for Node.js
https://npmjs.org/escpos
Other
1.38k stars 423 forks source link

Trying to use with React JS #368

Closed dsall closed 2 years ago

dsall commented 3 years ago

I have a sas webapp for pos solution. I am trying to use this library to allow my webapp to print automatically to the network thermal printer. when i require the escpos package it shows me a bunch of errors. Has everyone used this library with React or know how i can go about it.

dsall commented 3 years ago

This is the error it shows me.

./node_modules/escpos/statuses.js 6:7 Module parse failed: Unexpected token (6:7) File was processed with these loaders:

elliehachemjob commented 3 years ago

usually babel the default one you get with react app will not be able to convert your Sass code so you need to install a loader that can convert Sass synatx https://webpack.js.org/loaders/sass-loader/

dsall commented 3 years ago

I probably misquoted. I am not sure if that's the issue. But i will look into what you said.

basherahmadahsas commented 3 years ago

@dsall I am also facing the same error, did you find any solution if please share it with me as well. thanks

dsall commented 3 years ago

@dsall I am also facing the same error, did you find any solution if please share it with me as well. thanks

Nothing yet. Hopefully someone could help us.