The slcan module throws an error due to the module slcan uses an old API call to the serialport that is not supported anymore. The API has changed between versions. Here is the message that I'm getting:
/../node_modules/canbus/lib/slcan.js:62
parser: serialport.parsers.readline("\r")
^
TypeError: serialport.parsers.readline is not a function
this worked for me but it is a dirty fix:
...
slcan.prototype.open = function() {
this._conn = new SerialPort(this._dev_str);
this._conn.on("open", this._serialOpenCallback.bind(this));
this._conn.on("data", this._serialRecvCallback.bind(this));
}
...
The slcan module throws an error due to the module slcan uses an old API call to the serialport that is not supported anymore. The API has changed between versions. Here is the message that I'm getting:
this worked for me but it is a dirty fix: