Skip to content
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

- error TS2304: Cannot find name 'USBDevice'. #37

Open
rius1212 opened this issue Mar 9, 2021 · 3 comments
Open

- error TS2304: Cannot find name 'USBDevice'. #37

rius1212 opened this issue Mar 9, 2021 · 3 comments

Comments

@rius1212
Copy link

rius1212 commented Mar 9, 2021

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 ///

@jooskesters
Copy link

having the same issue here

@cooper1388
Copy link

I have the same error, have you been able to solve it?

@jooskesters
Copy link

jooskesters commented Jun 12, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants