problem when trying to use serialport in electron

0

Good ... install serialport with npm install --save serialport and when doing let serialport = require('serialport'); and try to run the application I skip the following error.

and this in console:

pd: I did not know how to look for the problem in google.

    
asked by Rodrigo Martín 10.01.2017 в 04:23
source

1 answer

0

For electron there is browser-serialport. which is the same as serialport, but for browser applications.

link

npm uninstall --save serialport
npm install --save browser-serialport
    
answered by 10.01.2017 / 22:31
source