Trying to use serialport@6 in my electron app, but i'm getting an error. #2682
-
Versions: node: 8.17.0 (32 bits version) After installing serialport@6 successfully, i'm importing the lib with nodeRequire (library requirejs), the same way i do with another dependencies of my project:
But i'm getting the following error:
Does anybody know what may be happening? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Is there a reason why you are using such old unsupported versions, are you not able to use modern versions of node, electron and serialport? |
Beta Was this translation helpful? Give feedback.
yikes, I've not tried using these old versions so am not sure if they will still work on windows 11; and the oldest documentation still available is for v7 :-(
Am I correct to think that you have an old electron 1.3.2 app that didn't include serialport, and you are looking to retrofit serialport into it rather than an existing app where serialport has recently stopped working?
Also, are you using the prebuild binaries or built from source? (per https://serialport.io/docs/7.x.x/guide-installation)
Assuming that running these old version is still feasible, then it could be an issue of incapability between the versions.
Node 8.17 is node ABI version 57 (per https://nodejs.org/en/download/rel…