From 7f4cc0d3fafe465de5f8dc4561087c603bebf2cd Mon Sep 17 00:00:00 2001 From: Manuel Conde Vendrell Date: Thu, 15 Oct 2020 12:49:16 +0200 Subject: [PATCH] Added an important note to work on clean systems --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index dba8a00..41b4ad3 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ Install library `npm install ng-thermal-print` +NOTE: if when compiling project you get an error like this: +`ERROR in node_modules/ng-thermal-print/lib/drivers/UsbDriver.d.ts:16:30 - error TS2304: Cannot find name 'USBDevice'. requestUsb(): Observable;` +then add reference to w3c-web-usb by installing it with command: `npm install @types/w3c-web-usb --only=dev` + Import into your application import { BrowserModule } from '@angular/platform-browser';