-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect printer using usb or serial requestPort #44
Comments
I am also facing this issues and still looking for a better way that is cross browser to connect to thermal printer that are attached through USB. @seokju-na any suggestions pleas. |
Since This library won't solve connecting to the printer, but i can give some guide. In Web Browser: In Electron or Node.js: |
Have you found a solution? I'm facing the same problem with a thermal printer attached via USB and not serial. The WebUSB API could help but it's a bit intricate to work, so using the library with USB would be great but unfortunately, I'm missing the serial port on my PC so I can't use it as of now. |
I found this: https://github.com/drffej/webusb.printer It's a very simple snippet that actually works and lets you print some text on a USB-attached printer (just adjust the Also, if you see an error You won't have any cool looking Components like this library offers, you'll have to format your own string and feed it to the encoder, but it should work. |
Unable to connect and print the text using usb cable and also get error :
DOMException: Failed to execute 'open' on 'SerialPort': Failed to open serial port. : (this in chrome)
TypeError: Cannot read properties of undefined (reading 'requestPort')
at handle (App.js:20:1) : (this in brave browser)
is it automatic connect to the printer or somthing else can you tellme how should i fixed it
The text was updated successfully, but these errors were encountered: