I came here looking for an example of how to interact with serial ports in ERB and it looks like you have just imported the module to the main.ts and created a static connection but that doesn't show up on the react side anywhere so this doesn't really help with understanding how to use serialport with ERB since its really not touching the Electron nor the react side.
I'm working on getting something wired up that will allow the front end to update and get information from the serial port module. I'm making this issue so that in a couple weeks when you shame me for not asking a useful question I have a reason to clean up my prototype code and share it in a pull request
Summary
I came here looking for an example of how to interact with serial ports in ERB and it looks like you have just imported the module to the main.ts and created a static connection but that doesn't show up on the react side anywhere so this doesn't really help with understanding how to use serialport with ERB since its really not touching the Electron nor the react side.
I'm working on getting something wired up that will allow the front end to update and get information from the serial port module. I'm making this issue so that in a couple weeks when you shame me for not asking a useful question I have a reason to clean up my prototype code and share it in a pull request