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
hi bebo925 , i got error when try to start project using ng serve. i already try to use this command npm install @types/w3c-web-usb --only=dev but i still got error like what i put in the title issue. any idea what i need to do ?
ERROR in node_modules/ng-thermal-print/lib/drivers/UsbDriver.d.ts:16:30 - error TS2304: Cannot find name 'USBDevice'.
16 requestUsb(): Observable;
~~~~~~~~~
node_modules/ng-thermal-print/lib/drivers/UsbDriver.d.ts:1:23 - error TS2688: Cannot find type definition file for 'w3c-web-usb'.
1 ///
The text was updated successfully, but these errors were encountered:
No... I suggest you step away from these libraries and use java.. With java you can copy some printing code from stackoverflow and it will work most of the time. You can then create a background service from your java program that handles the printing jobs ..
This is how I fixed it. Works fine, just some more work then expected when I put my faith in these stupid npm libraries
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Joseph Cooper ***@***.***>
Sent: Friday, June 11, 2021 7:35:01 PM
To: bebo925/ng-thermal-print ***@***.***>
Cc: jkjoos ***@***.***>; Comment ***@***.***>
Subject: Re: [bebo925/ng-thermal-print] - error TS2304: Cannot find name 'USBDevice'. (#37)
I have the same error, have you been able to solve it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#37 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKOJMW6ABAHHKIQX2IRPUBDTSJCMLANCNFSM4Y2YFFUQ>.
hi bebo925 , i got error when try to start project using ng serve. i already try to use this command npm install @types/w3c-web-usb --only=dev but i still got error like what i put in the title issue. any idea what i need to do ?
ERROR in node_modules/ng-thermal-print/lib/drivers/UsbDriver.d.ts:16:30 - error TS2304: Cannot find name 'USBDevice'.
16 requestUsb(): Observable;
~~~~~~~~~
node_modules/ng-thermal-print/lib/drivers/UsbDriver.d.ts:1:23 - error TS2688: Cannot find type definition file for 'w3c-web-usb'.
1 ///
The text was updated successfully, but these errors were encountered: