We want to serial port communication using existing angular2 project.

I installed the following.
npm install serialport --save
npm install @types/serialport --save

and

import { SerialPort } from 'serialport' in component.ts
serialPort: typeof SerialPort;


now we got undefined from serialPort.
and got the Can't resolve 'child_process' node_modules\@serialport\bindings\lib 
<https://stackoverflow.com/questions/57476591/cant-resolve-child-process-node-modules-serialport-bindings-lib-in-angular2>
 error for get port.
any one can help.



-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/262858bb-daf9-4a6c-9489-49f923ee0601%40googlegroups.com.

Reply via email to